git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4cb9da7
)
md: add missing sysfs_notify on array_state update
author
Tomasz Majchrzak
<tomasz.majchrzak@intel.com>
Thu, 30 Jun 2016 08:47:09 +0000
(10:47 +0200)
committer
Shaohua Li
<shli@fb.com>
Tue, 19 Jul 2016 18:28:39 +0000
(11:28 -0700)
Changeset
6791875e2e53
has added early return from a function so there is no
sysfs notification for 'active' and 'clean' state change.
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 29297e97cdea68c0e9c4f963c3aef42250dd229a..f77cad85404416e20fa8ea0a2a423bb6978ba9ae 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-3938,6
+3938,8
@@
array_state_store(struct mddev *mddev, const char *buf, size_t len)
} else
err = -EBUSY;
}
+ if (!err)
+ sysfs_notify_dirent_safe(mddev->sysfs_state);
spin_unlock(&mddev->lock);
return err ?: len;
}