VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2021-02-23 15:41:25 -0700 committer: Jens Axboe <axboe@kernel.dk> 2021-02-23 15:41:25 -0700 commit: 75ab6afacda01a6bd2d3ecd4cb8485f7c8fa2fdb parent: c0ea57608b691d6cde8aff23e11f9858a86b5918
Commit Summary:
block: don't skip empty device in in disk_uevent
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/block/genhd.c b/block/genhd.c
index 36ff45bbaaaf..6379b000576c 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -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);