|
@@ -7858,6 +7858,7 @@ int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
|
|
s + rdev->data_offset, sectors, acknowledged);
|
|
s + rdev->data_offset, sectors, acknowledged);
|
|
if (rv) {
|
|
if (rv) {
|
|
/* Make sure they get written out promptly */
|
|
/* Make sure they get written out promptly */
|
|
|
|
+ sysfs_notify_dirent_safe(rdev->sysfs_state);
|
|
set_bit(MD_CHANGE_CLEAN, &rdev->mddev->flags);
|
|
set_bit(MD_CHANGE_CLEAN, &rdev->mddev->flags);
|
|
md_wakeup_thread(rdev->mddev->thread);
|
|
md_wakeup_thread(rdev->mddev->thread);
|
|
}
|
|
}
|