aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 41c050b59ec4..4e4dee0ec2de 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -7605,7 +7605,9 @@ static int status_resync(struct seq_file *seq, struct mddev *mddev)
7605 if (test_bit(MD_RECOVERY_DONE, &mddev->recovery)) 7605 if (test_bit(MD_RECOVERY_DONE, &mddev->recovery))
7606 /* Still cleaning up */ 7606 /* Still cleaning up */
7607 resync = max_sectors; 7607 resync = max_sectors;
7608 } else 7608 } else if (resync > max_sectors)
7609 resync = max_sectors;
7610 else
7609 resync -= atomic_read(&mddev->recovery_active); 7611 resync -= atomic_read(&mddev->recovery_active);
7610 7612
7611 if (resync == 0) { 7613 if (resync == 0) {