projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
233fca3
)
md: notify level changes through sysfs.
author
Maciej Trela
<Maciej.Trela@intel.com>
Wed, 14 Apr 2010 07:17:39 +0000
(17:17 +1000)
committer
NeilBrown
<neilb@suse.de>
Tue, 18 May 2010 05:27:49 +0000
(15:27 +1000)
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>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 46bdf4b38be880bc1bf6b77366cf020004aec62e..c5a1b0725c9fc4f7d25405050429fefebd26882f 100644
(file)
--- 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)
set_bit(MD_CHANGE_DEVS, &mddev->flags);
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
md_wakeup_thread(mddev->thread);
+ sysfs_notify(&mddev->kobj, NULL, "level");
return rv;
}