diff --git a/drivers/md/md.c b/drivers/md/md.c index 60f835c6ed3b441fccca9e4bec9850a57442b90d..365ca3f14972edbf41479e64052c42f5e9bf9bba 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -8699,7 +8699,7 @@ void md_do_sync(struct md_thread *thread) mddev->pers->sync_request(mddev, max_sectors, &skipped); if (!test_bit(MD_RECOVERY_CHECK, &mddev->recovery) && - mddev->curr_resync >= MD_RESYNC_ACTIVE) { + mddev->curr_resync > MD_RESYNC_ACTIVE) { if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { if (mddev->curr_resync >= mddev->recovery_cp) {