diff mbox

[1/6] libmultipath: return PATH_DOWN for quiesced paths

Message ID 1363270128-20900-2-git-send-email-hare@suse.de (mailing list archive)
State Deferred, archived
Headers show

Commit Message

Hannes Reinecke March 14, 2013, 2:08 p.m. UTC
When a SCSI device is quiesced we cannot send any I/O requests to
it, so we should be returning 'PATH_DOWN' here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 libmultipath/discovery.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
index 0b5fd1d..050264e 100644
--- a/libmultipath/discovery.c
+++ b/libmultipath/discovery.c
@@ -798,7 +798,8 @@  path_offline (struct path * pp)
 	condlog(3, "%s: path state = %s", pp->dev, buff);
 
 	if (!strncmp(buff, "offline", 7) ||
-	    !strncmp(buff, "transport-offline", 17)) {
+	    !strncmp(buff, "transport-offline", 17) ||
+	    !strncmp(buff, "quiesce", 7)) {
 		pp->offline = 1;
 		return PATH_DOWN;
 	}