diff options
author | Maciej Trela <Maciej.Trela@intel.com> | 2010-04-14 03:17:39 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 01:27:49 -0400 |
commit | 5cac7861b2de95a1f714ebdc652813abd0afcc73 (patch) | |
tree | 552bc6200817c6872f403ab54a50e8c5f7a594fa /drivers | |
parent | 233fca36bb439eadcad28500b5139fed7c64a0ae (diff) |
md: notify level changes through sysfs.
Level changes can be very significant, so make sure
to notify them via sysfs.
Signed-off-by: Maciej Trela <maciej.trela@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers')
-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 46bdf4b38be8..c5a1b0725c9f 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -3059,6 +3059,7 @@ level_store(mddev_t *mddev, const char *buf, size_t len) | |||
3059 | set_bit(MD_CHANGE_DEVS, &mddev->flags); | 3059 | set_bit(MD_CHANGE_DEVS, &mddev->flags); |
3060 | set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); | 3060 | set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); |
3061 | md_wakeup_thread(mddev->thread); | 3061 | md_wakeup_thread(mddev->thread); |
3062 | sysfs_notify(&mddev->kobj, NULL, "level"); | ||
3062 | return rv; | 3063 | return rv; |
3063 | } | 3064 | } |
3064 | 3065 | ||