Re: New partition on loop device doesn't appear in /dev anymore with kernel 5.17.0 and newer (repro script included)
From: Christoph Hellwig
Date: Mon Jun 06 2022 - 03:49:14 EST
On Sun, Jun 05, 2022 at 12:00:10PM +0200, Salvatore Bonaccorso wrote:
> Hi,
>
> On Fri, Jun 03, 2022 at 03:23:13PM +0200, Christoph Hellwig wrote:
> > On Fri, Jun 03, 2022 at 03:21:28PM +0200, Michael Schaller wrote:
> > > Thank you, Christoph! <3
> > >
> > > Patch https://lore.kernel.org/all/20220527055806.1972352-1-hch@xxxxxx/
> > > does indeed fix the issue.
> > >
> > > Could this patch also be backported to 5.17 and 5.18?
> >
> > It should get picked up automatically based on the fixes tag as soon
> > as it hits mainline.
>
> As it does not apply cleanly to older versions, this probably will
> need a sperate turnaround, but AFAICS it's just because of
> a0e286b6a5b6 ("loop: remove lo_refcount and avoid lo_mutex in ->open /
> ->release") changing context of the fourth hunk in
> drivers/block/loop.c .
Normally the stable process takes care of such trivial changes. I'll
wait for the next batch and if not take care of it manually.