mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
block: don't skip empty device in in disk_uevent
Restore the previous behavior by using the correct flag for the whole device
("part0").
Fixes: 99dfc43ecb
("block: use ->bi_bdev for bio based I/O accounting")
Reported-by: John Stultz <john.stultz@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
c0ea57608b
commit
75ab6afacd
@ -476,7 +476,7 @@ void disk_uevent(struct gendisk *disk, enum kobject_action action)
|
||||
struct disk_part_iter piter;
|
||||
struct block_device *part;
|
||||
|
||||
disk_part_iter_init(&piter, disk, DISK_PITER_INCL_PART0);
|
||||
disk_part_iter_init(&piter, disk, DISK_PITER_INCL_EMPTY_PART0);
|
||||
while ((part = disk_part_iter_next(&piter)))
|
||||
kobject_uevent(bdev_kobj(part), action);
|
||||
disk_part_iter_exit(&piter);
|
||||
|
Loading…
Reference in New Issue
Block a user