[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210223063130.GA16292@lst.de>
Date: Tue, 23 Feb 2021 07:31:30 +0100
From: Christoph Hellwig <hch@....de>
To: John Stultz <john.stultz@...aro.org>
Cc: Christoph Hellwig <hch@....de>, Tejun Heo <tj@...nel.org>,
Jens Axboe <axboe@...nel.dk>,
David Anderson <dvander@...gle.com>,
linux-block@...r.kernel.org, lkml <linux-kernel@...r.kernel.org>,
Todd Kjos <tkjos@...gle.com>,
Amit Pundir <amit.pundir@...aro.org>,
Alistair Delva <adelva@...gle.com>
Subject: Re: [REGRESSION] "add a disk_uevent helper" breaks booting Andorid
w/ dynamic partitions
Please try the patch below:
---
>From 85943345b41ec04f5a9e92dfad85b0fb24e2d2eb Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch@....de>
Date: Tue, 23 Feb 2021 07:28:22 +0100
Subject: 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: 99dfc43ecbf6 ("block: use ->bi_bdev for bio based I/O accounting")
Reported-by: John Stultz <john.stultz@...aro.org>
Signed-off-by: Christoph Hellwig <hch@....de>
---
block/genhd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/genhd.c b/block/genhd.c
index dbb92e24ef65ed..fcc530164b5ab4 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);
--
2.29.2
Powered by blists - more mailing lists