diff options
author | Kiyoshi Ueda <k-ueda@ct.jp.nec.com> | 2009-12-11 02:52:27 +0300 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-12-11 02:52:27 +0300 |
commit | c2f3d24b783fda20618b73d65678eb5dfae31a5d (patch) | |
tree | 0c5f266885460a4829c1f7c2083cd66004bd1ec2 /drivers/md/dm-mpath.c | |
parent | 64dbce580d5a7e89e8de20b91f80c7267cdad91d (diff) | |
download | linux-c2f3d24b783fda20618b73d65678eb5dfae31a5d.tar.xz |
dm mpath: reject messages when device is suspended
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>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 45d9bf14cc48..e81345a1d08f 100644 --- 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); |