Message ID | 20240305072306.2562024-2-yukuai1@huaweicloud.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Mike Snitzer |
Headers | show |
Series | dm-raid, md/raid: fix v6.7 regressions part2 | expand |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9e41a9aaba8b..23f31fd1d024 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6038,7 +6038,10 @@ int md_run(struct mddev *mddev) pr_warn("True protection against single-disk failure might be compromised.\n"); } - mddev->recovery = 0; + /* dm-raid expect sync_thread to be frozen until resume */ + if (mddev->gendisk) + mddev->recovery = 0; + /* may be over-ridden by personality */ mddev->resync_max_sectors = mddev->dev_sectors;