dm raid: select the Kconfig option CONFIG_MD_RAID0
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 28 Mar 2017 16:53:39 +0000 (12:53 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 30 Mar 2017 15:17:08 +0000 (11:17 -0400)
Since the commit 0cf4503174c1 ("dm raid: add support for the MD RAID0
personality"), the dm-raid subsystem can activate a RAID-0 array.
Therefore, add MD_RAID0 to the dependencies of DM_RAID, so that MD_RAID0
will be selected when DM_RAID is selected.

Fixes: 0cf4503174c1 ("dm raid: add support for the MD RAID0 personality")
Cc: stable@vger.kernel.org # v4.2+
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/Kconfig

index 5c5ed97c9fda699a629ce170e426ea2856d2ad6f..ee2c21e3d23207f1dc0d224fb891df82c0fc1088 100644 (file)
@@ -357,6 +357,7 @@ config DM_LOG_USERSPACE
 config DM_RAID
        tristate "RAID 1/4/5/6/10 target"
        depends on BLK_DEV_DM
+       select MD_RAID0
        select MD_RAID1
        select MD_RAID10
        select MD_RAID456