[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZCWgAvLh6sNs03SW@makrotopia.org>
Date: Thu, 30 Mar 2023 15:43:14 +0100
From: Daniel Golle <daniel@...rotopia.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: Richard Weinberger <richard@....at>,
Matthew Wilcox <willy@...radead.org>,
Jens Axboe <axboe@...nel.dk>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Chaitanya Kulkarni <kch@...dia.com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 1/4] init: move block device helpers from
init/do_mounts.c
Hi Christoph,
On Tue, Nov 22, 2022 at 04:37:08AM -0800, Christoph Hellwig wrote:
> On Sat, Nov 19, 2022 at 04:03:11PM +0000, Daniel Golle wrote:
> > [...]
> > Yet another (imho not terrible) problem is removal of the lower device.
> > Many of the supported SBC use a micro SD card to boot, which can be
> > removed by the user while the system is running (which is generally not
> > a good idea, but anyway). For partitions this is handled automatically
> > by blk_drop_partitions() called directly from genhd.c.
> > I'm currently playing with doing something similar using the bus device
> > removal notification, but it doesn't seem to work for all cases, e.g.
> > mmcblk device do not seem to have the ->bus pointer populated at all
> > (ie. disk_to_dev(disk)->bus == NULL for mmcblk devices).
>
> I have WIP patches that allow the claimer of a block device get
> resize and removal notification. It's not going to land for 6.2,
> but I hope I have it ready in time for the next merge window.
Any news about that patchset? I'd happily review, test and use it ;)
Powered by blists - more mailing lists