diff options
author | Tomasz Majchrzak <tomasz.majchrzak@intel.com> | 2016-06-30 10:47:09 +0200 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-07-19 11:28:39 -0700 |
commit | 573275b58ee9e1d2ec89f9608060f58931c3cde3 (patch) | |
tree | 514ad00a4139c0a5ef20d9b8a5b601a6442202ca /drivers/md/md.c | |
parent | 4cb9da7d9c631514effa5e806f9de7c7c746c3a8 (diff) | |
download | op-kernel-dev-573275b58ee9e1d2ec89f9608060f58931c3cde3.zip op-kernel-dev-573275b58ee9e1d2ec89f9608060f58931c3cde3.tar.gz |
md: add missing sysfs_notify on array_state update
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>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 29297e9..f77cad8 100644 --- 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; } |