]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
block: default BLOCK_LEGACY_AUTOLOAD to y
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Feb 2022 18:14:40 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:34 +0000 (11:05 +0100)
commit 451f0b6f4c44d7b649ae609157b114b71f6d7875 upstream.

As Luis reported, losetup currently doesn't properly create the loop
device without this if the device node already exists because old
scripts created it manually.  So default to y for now and remove the
aggressive removal schedule.

Reported-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220225181440.1351591-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: Sebastian Priebe <sebastian.priebe@konplan.com>
Link: https://lore.kernel.org/r/ZR0P278MB097497EF6CFD85E72819447E9F70A@ZR0P278MB0974.CHEP278.PROD.OUTLOOK.COM
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/Kconfig
block/bdev.c

index 0d415226e3daae55e0e3a521ea1b85a27d4f10d3..ee4c543b1c33702953111e2aea62ee2cc8e28906 100644 (file)
@@ -28,15 +28,13 @@ if BLOCK
 
 config BLOCK_LEGACY_AUTOLOAD
        bool "Legacy autoloading support"
+       default y
        help
          Enable loading modules and creating block device instances based on
          accesses through their device special file.  This is a historic Linux
          feature and makes no sense in a udev world where device files are
-         created on demand.
-
-         Say N here unless booting or other functionality broke without it, in
-         which case you should also send a report to your distribution and
-         linux-block@vger.kernel.org.
+         created on demand, but scripts that manually create device nodes and
+         then call losetup might rely on this behavior.
 
 config BLK_RQ_ALLOC_TIME
        bool
index 85c090ef3bf2c356502add3f973ab51a775c8a9d..ce7c20c266179323b07ac37832bf546d2db16d72 100644 (file)
@@ -741,7 +741,7 @@ struct block_device *blkdev_get_no_open(dev_t dev)
                inode = ilookup(blockdev_superblock, dev);
                if (inode)
                        pr_warn_ratelimited(
-"block device autoloading is deprecated. It will be removed in Linux 5.19\n");
+"block device autoloading is deprecated and will be removed.\n");
        }
        if (!inode)
                return NULL;