X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fmd%2Fmd.c;h=3fe3d04a968ad1ae5e148abbc93cde43be576104;hb=4c84518523f888994c618585021c76fa499d465e;hp=c702de18207ae76ab56f1235ed5c98a9095ed050;hpb=175d58cfed70f132b8d4df39e19267ad6094bd16;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/md/md.c b/drivers/md/md.c index c702de18207a..3fe3d04a968a 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -8040,8 +8040,7 @@ static int remove_and_add_spares(struct mddev *mddev, !test_bit(Bitmap_sync, &rdev->flags))) continue; - if (rdev->saved_raid_disk < 0) - rdev->recovery_offset = 0; + rdev->recovery_offset = 0; if (mddev->pers-> hot_add_disk(mddev, rdev) == 0) { if (sysfs_link_rdev(mddev, rdev))