Skip to content

Commit 3855356

Browse files
bjking1James Bottomley
authored andcommitted
[SCSI] ibmvfc: Fix Virtual I/O failover hang
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 <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent 0d72c6f commit 3855356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/ibmvscsi/ibmvfc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4306,8 +4306,8 @@ static void ibmvfc_do_work(struct ibmvfc_host *vhost)
43064306
spin_lock_irqsave(vhost->host->host_lock, flags);
43074307
if (rc == H_CLOSED)
43084308
vio_enable_interrupts(to_vio_dev(vhost->dev));
4309-
else if (rc || (rc = ibmvfc_send_crq_init(vhost)) ||
4310-
(rc = vio_enable_interrupts(to_vio_dev(vhost->dev)))) {
4309+
if (rc || (rc = ibmvfc_send_crq_init(vhost)) ||
4310+
(rc = vio_enable_interrupts(to_vio_dev(vhost->dev)))) {
43114311
ibmvfc_link_down(vhost, IBMVFC_LINK_DEAD);
43124312
dev_err(vhost->dev, "Error after reset (rc=%d)\n", rc);
43134313
}

0 commit comments

Comments
 (0)