Skip to content

Commit

Permalink
md: Using poll /proc/mdstat can monitor the events of adding a spare …
Browse files Browse the repository at this point in the history
…disks

Signed-off-by: majianpeng <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
  • Loading branch information
majianpeng authored and neilbrown committed Jun 9, 2011
1 parent d744540 commit 9864c00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -5274,6 +5274,8 @@ static int add_new_disk(mddev_t * mddev, mdu_disk_info_t *info)
if (mddev->degraded)
set_bit(MD_RECOVERY_RECOVER, &mddev->recovery);
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
if (!err)
md_new_event(mddev);
md_wakeup_thread(mddev->thread);
return err;
}
Expand Down

0 comments on commit 9864c00

Please sign in to comment.