diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index a7e69081187fc864ec217bd5c1a250c2f8d9f6ab..3cbf0ac2aaad3b6bdab9c859d36f44369e027ff7 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1031,7 +1031,7 @@ static int raid1_spare_active(mddev_t *mddev) && !test_bit(Faulty, &rdev->flags) && !test_and_set_bit(In_sync, &rdev->flags)) { count++; - sysfs_notify_dirent(rdev->sysfs_state); + sysfs_notify_dirent_safe(rdev->sysfs_state); } } spin_lock_irqsave(&conf->device_lock, flags);