diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 7dcc74089550..766be8701281 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -2385,6 +2385,7 @@ slot_store(mdk_rdev_t *rdev, const char *buf, size_t len) | |||
2385 | return err; | 2385 | return err; |
2386 | sprintf(nm, "rd%d", rdev->raid_disk); | 2386 | sprintf(nm, "rd%d", rdev->raid_disk); |
2387 | sysfs_remove_link(&rdev->mddev->kobj, nm); | 2387 | sysfs_remove_link(&rdev->mddev->kobj, nm); |
2388 | rdev->raid_disk = -1; | ||
2388 | set_bit(MD_RECOVERY_NEEDED, &rdev->mddev->recovery); | 2389 | set_bit(MD_RECOVERY_NEEDED, &rdev->mddev->recovery); |
2389 | md_wakeup_thread(rdev->mddev->thread); | 2390 | md_wakeup_thread(rdev->mddev->thread); |
2390 | } else if (rdev->mddev->pers) { | 2391 | } else if (rdev->mddev->pers) { |