md: notify mdstat waiters of level change

Level modifications change the output of mdstat.  The mdmon manager
thread is interested in these events for external metadata management.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2010-05-01 18:14:57 -07:00 committed by NeilBrown
parent f1b29bcae1
commit bb7f8d2217

View File

@ -3075,6 +3075,7 @@ level_store(mddev_t *mddev, const char *buf, size_t len)
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
md_wakeup_thread(mddev->thread);
sysfs_notify(&mddev->kobj, NULL, "level");
md_new_event(mddev);
return rv;
}