aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 6d3a2a09cd90..f920e50ea124 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -2858,7 +2858,7 @@ static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *ski
2858 * to resync, then assert that we are finished, because there is 2858 * to resync, then assert that we are finished, because there is
2859 * nothing we can do. 2859 * nothing we can do.
2860 */ 2860 */
2861 if (mddev->degraded >= (data_disks - raid_disks) && 2861 if (mddev->degraded >= conf->max_degraded &&
2862 test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { 2862 test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) {
2863 sector_t rv = (mddev->size << 1) - sector_nr; 2863 sector_t rv = (mddev->size << 1) - sector_nr;
2864 *skipped = 1; 2864 *skipped = 1;