Comment # 3 on bug 1173239 from
So, with the current 15.2 kernel "losetup -P" does not work, and the commit
that fix the issue is is not needed. What's next?

For the record here is the unneeded fix that I'm using.

diff -Nraub linux.ori/block/partition-generic.c linux/block/partition-generic.c
--- linux.ori/block/partition-generic.c 2020-06-09 16:59:24.000000000 -0400
+++ linux/block/partition-generic.c     2020-06-22 10:20:22.432854702 -0400
@@ -463,7 +463,7 @@
        struct hd_struct *part;
        int res;

-       if (bdev->bd_part_count || bdev->bd_openers > 1)
+       if (bdev->bd_part_count)
                return -EBUSY;
        res = invalidate_partition(disk, 0);
        if (res)


You are receiving this mail because: