diff --git a/drivers/md/md.c b/drivers/md/md.c index 7a491771ff4dbd2d425745b63c921f4227166fd3..0ea34858637a4e55bea516976de5f7a9a4e6ca90 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2722,6 +2722,7 @@ slot_store(struct md_rdev *rdev, const char *buf, size_t len) rdev->saved_raid_disk = slot; else rdev->saved_raid_disk = -1; + clear_bit(In_sync, &rdev->flags); err = rdev->mddev->pers-> hot_add_disk(rdev->mddev, rdev); if (err) {