projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64dbce5
)
dm mpath: reject messages when device is suspended
author
Kiyoshi Ueda
<k-ueda@ct.jp.nec.com>
Thu, 10 Dec 2009 23:52:27 +0000
(23:52 +0000)
committer
Alasdair G Kergon
<agk@redhat.com>
Thu, 10 Dec 2009 23:52:27 +0000
(23:52 +0000)
This patch rejects messages that can generate I/O while the device
itself is suspended.
Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Cc: Mike Anderson <andmike@linux.vnet.ibm.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-mpath.c
b/drivers/md/dm-mpath.c
index 45d9bf14cc4892e90a94b9af7735e478d4aadeb6..e81345a1d08fa2f1fec21437c420ccacbbdcd360 100644
(file)
--- a/
drivers/md/dm-mpath.c
+++ b/
drivers/md/dm-mpath.c
@@
-1433,6
+1433,11
@@
static int multipath_message(struct dm_target *ti, unsigned argc, char **argv)
goto out;
}
+ if (dm_suspended(ti)) {
+ r = -EBUSY;
+ goto out;
+ }
+
if (argc == 1) {
if (!strnicmp(argv[0], MESG_STR("queue_if_no_path"))) {
r = queue_if_no_path(m, 1, 0);