md: select BLOCK_LEGACY_AUTOLOAD
authorNeilBrown <neilb@suse.de>
Mon, 13 Mar 2023 20:29:17 +0000 (13:29 -0700)
committerSong Liu <song@kernel.org>
Wed, 15 Mar 2023 18:12:14 +0000 (11:12 -0700)
When BLOCK_LEGACY_AUTOLOAD is not enable, mdadm is not able to
activate new arrays unless "CREATE names=yes" appears in
mdadm.conf

As this is a regression we need to always enable BLOCK_LEGACY_AUTOLOAD
for when MD is selected - at least until mdadm is updated and the
updates widely available.

Cc: stable@vger.kernel.org # v5.18+
Fixes: fbdee71bb5d8 ("block: deprecate autoloading based on dev_t")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/Kconfig

index 998a5cfdbc4e9485fbdc9d4bb0c438d32dbf42a1..662d219c39bf44b299aae5048a1b9db8874dca16 100644 (file)
@@ -16,6 +16,10 @@ if MD
 config BLK_DEV_MD
        tristate "RAID support"
        select BLOCK_HOLDER_DEPRECATED if SYSFS
+       # BLOCK_LEGACY_AUTOLOAD requirement should be removed
+       # after relevant mdadm enhancements - to make "names=yes"
+       # the default - are widely available.
+       select BLOCK_LEGACY_AUTOLOAD
        help
          This driver lets you combine several hard disk partitions into one
          logical block device. This can be used to simply append one