diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-raid.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 89a06a361332..45d94a7e7f6d 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c | |||
@@ -1017,6 +1017,19 @@ static int analyse_superblocks(struct dm_target *ti, struct raid_set *rs) | |||
1017 | 1017 | ||
1018 | freshest = NULL; | 1018 | freshest = NULL; |
1019 | rdev_for_each_safe(rdev, tmp, mddev) { | 1019 | rdev_for_each_safe(rdev, tmp, mddev) { |
1020 | /* | ||
1021 | * Skipping super_load due to DMPF_SYNC will cause | ||
1022 | * the array to undergo initialization again as | ||
1023 | * though it were new. This is the intended effect | ||
1024 | * of the "sync" directive. | ||
1025 | * | ||
1026 | * When reshaping capability is added, we must ensure | ||
1027 | * that the "sync" directive is disallowed during the | ||
1028 | * reshape. | ||
1029 | */ | ||
1030 | if (rs->print_flags & DMPF_SYNC) | ||
1031 | continue; | ||
1032 | |||
1020 | if (!rdev->meta_bdev) | 1033 | if (!rdev->meta_bdev) |
1021 | continue; | 1034 | continue; |
1022 | 1035 | ||