Displaying 15 results from an estimated 15 matches for "exact_lock".
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...; bdi = &disk->queue->backing_dev_info;
> - bdi_register_owner(bdi, disk_to_dev(disk));
> + retval = bdi_register_owner(bdi, disk_to_dev(disk));
> + if (retval)
> + goto fail;
>
> - blk_register_region(disk_devt(disk), disk->minors, NULL,
> - exact_match, exact_lock, disk);
> - register_disk(parent, disk);
> - blk_register_queue(disk);
> + retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
> + exact_match, exact_lock, disk);
> + if (retval)
> + goto fail;
> + retval = register_disk(parent, disk);
> + if (retva...
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...; bdi = &disk->queue->backing_dev_info;
> - bdi_register_owner(bdi, disk_to_dev(disk));
> + retval = bdi_register_owner(bdi, disk_to_dev(disk));
> + if (retval)
> + goto fail;
>
> - blk_register_region(disk_devt(disk), disk->minors, NULL,
> - exact_match, exact_lock, disk);
> - register_disk(parent, disk);
> - blk_register_queue(disk);
> + retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
> + exact_match, exact_lock, disk);
> + if (retval)
> + goto fail;
> + retval = register_disk(parent, disk);
> + if (retva...
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...di_register_owner(bdi, disk_to_dev(disk));
> > > + retval = bdi_register_owner(bdi, disk_to_dev(disk));
> > > + if (retval)
> > > + goto fail;
> > >
> > > - blk_register_region(disk_devt(disk), disk->minors, NULL,
> > > - exact_match, exact_lock, disk);
> > > - register_disk(parent, disk);
> > > - blk_register_queue(disk);
> > > + retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
> > > + exact_match, exact_lock, disk);
> > > + if (retval)
> > > + goto fail;
&...
2016 Aug 17
2
[PATCH 06/15] genhd: Add return code to device_add_disk
...di_register_owner(bdi, disk_to_dev(disk));
> > > + retval = bdi_register_owner(bdi, disk_to_dev(disk));
> > > + if (retval)
> > > + goto fail;
> > >
> > > - blk_register_region(disk_devt(disk), disk->minors, NULL,
> > > - exact_match, exact_lock, disk);
> > > - register_disk(parent, disk);
> > > - blk_register_queue(disk);
> > > + retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
> > > + exact_match, exact_lock, disk);
> > > + if (retval)
> > > + goto fail;
&...
2016 Jun 30
0
[PATCH v2 02/12] genhd: Honor gen_uevent and add disk_gen_uevents
...redhat.com>
---
block/genhd.c | 23 +++++++++++++++++++----
include/linux/genhd.h | 1 +
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index 8e1bfa1..9b66953 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -506,12 +506,10 @@ static int exact_lock(dev_t devt, void *data)
return 0;
}
-static void register_disk(struct gendisk *disk)
+static void register_disk(struct gendisk *disk, bool gen_uevent)
{
struct device *ddev = disk_to_dev(disk);
struct block_device *bdev;
- struct disk_part_iter piter;
- struct hd_struct *part;
int err;...
2016 Aug 17
0
[PATCH 06/15] genhd: Add return code to device_add_disk
...acking_dev_info;
> > - bdi_register_owner(bdi, disk_to_dev(disk));
> > + retval = bdi_register_owner(bdi, disk_to_dev(disk));
> > + if (retval)
> > + goto fail;
> >
> > - blk_register_region(disk_devt(disk), disk->minors, NULL,
> > - exact_match, exact_lock, disk);
> > - register_disk(parent, disk);
> > - blk_register_queue(disk);
> > + retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
> > + exact_match, exact_lock, disk);
> > + if (retval)
> > + goto fail;
> > + retval = register_d...
2016 Aug 17
0
[PATCH 06/15] genhd: Add return code to device_add_disk
...before referencing it from bdev */
bdi = &disk->queue->backing_dev_info;
- bdi_register_owner(bdi, disk_to_dev(disk));
+ retval = bdi_register_owner(bdi, disk_to_dev(disk));
+ if (retval)
+ goto fail;
- blk_register_region(disk_devt(disk), disk->minors, NULL,
- exact_match, exact_lock, disk);
- register_disk(parent, disk);
- blk_register_queue(disk);
+ retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
+ exact_match, exact_lock, disk);
+ if (retval)
+ goto fail;
+ retval = register_disk(parent, disk);
+ if (retval)
+ goto fail;
+ retval = blk_register...
2016 Aug 17
0
[PATCH 06/15] genhd: Add return code to device_add_disk
..._dev(disk));
> > > > + retval = bdi_register_owner(bdi, disk_to_dev(disk));
> > > > + if (retval)
> > > > + goto fail;
> > > >
> > > > - blk_register_region(disk_devt(disk), disk->minors, NULL,
> > > > - exact_match, exact_lock, disk);
> > > > - register_disk(parent, disk);
> > > > - blk_register_queue(disk);
> > > > + retval = blk_register_region(disk_devt(disk), disk->minors, NULL,
> > > > + exact_match, exact_lock, disk);
> > > > + if (retval)
>...
2012 Mar 27
1
Odd hang on a 5.6 system
...c3>] avc_has_perm+0x3c/0x46
Mar 27 16:52:05 cjcsrv kernel: [<c04c9c29>] inode_has_perm+0x54/0x5c
Mar 27 16:52:05 cjcsrv kernel: [<c04eef8a>] kobject_get+0xf/0x13
Mar 27 16:52:05 cjcsrv kernel: [<c04e5e51>] get_disk+0x35/0x6e
Mar 27 16:52:05 cjcsrv kernel: [<c04e5e91>] exact_lock+0x7/0xd
Mar 27 16:52:05 cjcsrv kernel: [<c056291d>] kobj_lookup+0x10d/0x168
Mar 27 16:52:05 cjcsrv kernel: [<e8941042>] idecd_open+0x7b/0xa8 [ide_cd]
Mar 27 16:52:05 cjcsrv kernel: [<c047e448>] do_open+0x89/0x2cc
Mar 27 16:52:05 cjcsrv kernel: [<c047e7f7>] blkdev_open+0x...
2004 Dec 07
0
Zaptel HDLC (NetHDLC) errors on modprobe, Linux 2.6 kernel
...stantiate+0xa3/0xa9
[<021729ea>] d_splice_alias+0x145/0x14e
[<428a4ec9>] ext3_lookup+0x70/0x89 [ext3]
[<0216802f>] real_lookup+0x6e/0xd2
[<02171457>] dput+0x1b/0x287
[<0216901d>] link_path_walk+0xd3c/0xdf7
[<02163ffc>] cdev_get+0x33/0x68
[<02163f7a>] exact_lock+0x7/0x11
[<0221850d>] kobj_lookup+0x132/0x194
[<02163f70>] exact_match+0x0/0x3
[<0216d078>] sys_ioctl+0x23d/0x2a0
divert: not allocating divert_blk for non-ethernet device hdlc0
Registered tone zone 0 (United States / North America)
Using ESF/B8ZS coding/framing
Calling startup...
2009 Sep 10
24
[Bug 23847] New: kernel BUG when using nouveau
...scsi_request_fn+0x326/0x3c6
[ 288.525536] [<c0380536>] ? avc_has_perm+0x3c/0x46
[ 288.525545] [<c0380536>] ? avc_has_perm+0x3c/0x46
[ 288.525553] [<c03b09e8>] ? kobject_get+0x12/0x17
[ 288.525562] [<c03a88cf>] ? get_disk+0x39/0x50
[ 288.525571] [<c03a88f0>] ? exact_lock+0xa/0x11
[ 288.525579] [<c03b09e8>] ? kobject_get+0x12/0x17
[ 288.525587] [<c041c01a>] ? get_device+0x13/0x18
[ 288.525595] [<c0433f8a>] sr_block_open+0x6d/0x82
[ 288.525603] [<c02b27a0>] __blkdev_get+0x7f/0x289
[ 288.525612] [<c02b29b4>] blkdev_get+0xa/0xc
[...
2016 Aug 17
20
[PATCH 00/15] Fix issue with KOBJ_ADD uevent versus disk attributes
This is an attempt to fix the issue that some disks' sysfs attributes are not
ready at the time its KOBJ_ADD event is sent.
The symptom is during device hotplug, udev may fail to find certain attributes,
such as serial or wwn, of the disk. As a result the /dev/disk/by-id entries are
not created.
The cause is device_add_disk emits the uevent before returning, and the callers
have to create
2016 Aug 17
20
[PATCH 00/15] Fix issue with KOBJ_ADD uevent versus disk attributes
This is an attempt to fix the issue that some disks' sysfs attributes are not
ready at the time its KOBJ_ADD event is sent.
The symptom is during device hotplug, udev may fail to find certain attributes,
such as serial or wwn, of the disk. As a result the /dev/disk/by-id entries are
not created.
The cause is device_add_disk emits the uevent before returning, and the callers
have to create
2016 Jun 30
17
[PATCH v2 00/12] gendisk: Generate uevent after attribute available
The race condition is noticed between disk_add() and disk attributes, on
virtio-blk hotplug.
Userspace listens to the KOBJ_ADD uevent generated in add_disk(). At that
point we haven't created the serial attribute file, therefore depending
on how fast udev reacts, the /dev/disk/by-id/ entry doesn't always get
created.
As pointed out by Christoph Hellwig in the specific fix [1], virtio-blk
2016 Jun 30
17
[PATCH v2 00/12] gendisk: Generate uevent after attribute available
The race condition is noticed between disk_add() and disk attributes, on
virtio-blk hotplug.
Userspace listens to the KOBJ_ADD uevent generated in add_disk(). At that
point we haven't created the serial attribute file, therefore depending
on how fast udev reacts, the /dev/disk/by-id/ entry doesn't always get
created.
As pointed out by Christoph Hellwig in the specific fix [1], virtio-blk