Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38553564 authored by Brian King's avatar Brian King Committed by James Bottomley
Browse files

[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: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 0d72c6fc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4306,7 +4306,7 @@ static void ibmvfc_do_work(struct ibmvfc_host *vhost)
		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)) ||
		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);