From: Hannes Reinecke Subject: [PATCH 05/29] libmultipath: return PATH_DOWN for quiesced paths Date: Mon, 15 Jul 2013 15:00:06 +0200 Message-ID: <1373893230-26077-6-git-send-email-hare@suse.de> References: <1373893230-26077-1-git-send-email-hare@suse.de> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1373893230-26077-1-git-send-email-hare@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Christophe Varoqui Cc: dm-devel@redhat.com List-Id: dm-devel.ids 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 --- libmultipath/discovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index 18f72ec..04c6029 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -835,6 +835,7 @@ path_offline (struct path * pp) condlog(3, "%s: path state = %s", pp->dev, buff); if (!strncmp(buff, "offline", 7) || + !strncmp(buff, "quiesce", 7) || !strncmp(buff, "transport-offline", 17)) { pp->offline = 1; return PATH_DOWN; -- 1.7.10.4