Re: New partition on loop device doesn't appear in /dev anymore with kernel 5.17.0 and newer (repro script included)

From: Salvatore Bonaccorso
Date: Sun Jun 05 2022 - 06:00:19 EST


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 .

Regards,
Salvatore