All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ibmvfc: Fix Virtual I/O failover hang
@ 2011-06-03 13:23 Brian King
  0 siblings, 0 replies; only message in thread
From: Brian King @ 2011-06-03 13:23 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, brking


If a Virtual I/O server fails in a dual virtual I/O server multipath
configuration, ensure we delete all remote ports so that path failover
can occur. For a single path configuration, the remote ports will
go into devloss state.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---

 drivers/scsi/ibmvscsi/ibmvfc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/scsi/ibmvscsi/ibmvfc.c~ibmvfc_failover_hang drivers/scsi/ibmvscsi/ibmvfc.c
--- linux-2.6/drivers/scsi/ibmvscsi/ibmvfc.c~ibmvfc_failover_hang	2011-06-02 15:33:36.000000000 -0500
+++ linux-2.6-bjking1/drivers/scsi/ibmvscsi/ibmvfc.c	2011-06-02 15:33:45.000000000 -0500
@@ -4306,8 +4306,8 @@ static void ibmvfc_do_work(struct ibmvfc
 		spin_lock_irqsave(vhost->host->host_lock, flags);
 		if (rc == H_CLOSED)
 			vio_enable_interrupts(to_vio_dev(vhost->dev));
-		else if (rc || (rc = ibmvfc_send_crq_init(vhost)) ||
-			 (rc = vio_enable_interrupts(to_vio_dev(vhost->dev)))) {
+		if (rc || (rc = ibmvfc_send_crq_init(vhost)) ||
+		    (rc = vio_enable_interrupts(to_vio_dev(vhost->dev)))) {
 			ibmvfc_link_down(vhost, IBMVFC_LINK_DEAD);
 			dev_err(vhost->dev, "Error after reset (rc=%d)\n", rc);
 		}
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-03 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-03 13:23 [PATCH 1/1] ibmvfc: Fix Virtual I/O failover hang Brian King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.