diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 7af64f3846a6..612343fdde94 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6347,7 +6347,8 @@ void md_do_sync(mddev_t *mddev) | |||
6347 | if ((mddev->curr_resync > mddev->curr_resync_completed && | 6347 | if ((mddev->curr_resync > mddev->curr_resync_completed && |
6348 | (mddev->curr_resync - mddev->curr_resync_completed) | 6348 | (mddev->curr_resync - mddev->curr_resync_completed) |
6349 | > (max_sectors >> 4)) || | 6349 | > (max_sectors >> 4)) || |
6350 | j >= mddev->resync_max | 6350 | (j - mddev->curr_resync_completed)*2 |
6351 | >= mddev->resync_max - mddev->curr_resync_completed | ||
6351 | ) { | 6352 | ) { |
6352 | /* time to update curr_resync_completed */ | 6353 | /* time to update curr_resync_completed */ |
6353 | blk_unplug(mddev->queue); | 6354 | blk_unplug(mddev->queue); |