mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 05:37:36 +00:00
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>
This commit is contained in:
parent
64dbce580d
commit
c2f3d24b78
1 changed files with 5 additions and 0 deletions
|
@ -1433,6 +1433,11 @@ static int multipath_message(struct dm_target *ti, unsigned argc, char **argv)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dm_suspended(ti)) {
|
||||||
|
r = -EBUSY;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
if (!strnicmp(argv[0], MESG_STR("queue_if_no_path"))) {
|
if (!strnicmp(argv[0], MESG_STR("queue_if_no_path"))) {
|
||||||
r = queue_if_no_path(m, 1, 0);
|
r = queue_if_no_path(m, 1, 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue