aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>2016-06-30 10:47:09 +0200
committerShaohua Li <shli@fb.com>2016-07-19 11:28:39 -0700
commit573275b58ee9e1d2ec89f9608060f58931c3cde3 (patch)
tree514ad00a4139c0a5ef20d9b8a5b601a6442202ca /drivers/md
parentFix kernel module refcount handling (diff)
downloadlinux-dev-573275b58ee9e1d2ec89f9608060f58931c3cde3.tar.xz
linux-dev-573275b58ee9e1d2ec89f9608060f58931c3cde3.zip
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')
-rw-r--r--drivers/md/md.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 29297e97cdea..f77cad854044 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;
}