diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 0f13d57ef646..e055ec94b9a8 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -3769,6 +3769,7 @@ static int raid10_run(struct mddev *mddev) if (blk_queue_discard(bdev_get_queue(rdev->bdev))) discard_supported = true; + first = 0; } if (mddev->queue) { @@ -4172,6 +4173,7 @@ static int raid10_start_reshape(struct mddev *mddev) if (first || diff < min_offset_diff) min_offset_diff = diff; } + first = 0; } if (max(before_length, after_length) > min_offset_diff) |