Commit 2c2255e0 authored by Eddie Wai's avatar Eddie Wai Committed by James Bottomley

[SCSI] bnx2i: Recouple the CFC delete cleanup with cm_abort/close completion

Specific to the Broadcom 10g chipset, the CFC delete operation must be
coupled with the cm_abort/close with does the SRC delete/terminate offload
operation prior.
Signed-off-by: default avatarEddie Wai <eddie.wai@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Acked-by: default avatarBenjamin Li <benli@broadcom.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent c47b4012
...@@ -1996,9 +1996,11 @@ int bnx2i_hw_ep_disconnect(struct bnx2i_endpoint *bnx2i_ep) ...@@ -1996,9 +1996,11 @@ int bnx2i_hw_ep_disconnect(struct bnx2i_endpoint *bnx2i_ep)
else else
close_ret = cnic->cm_abort(bnx2i_ep->cm_sk); close_ret = cnic->cm_abort(bnx2i_ep->cm_sk);
/* No longer allow CFC delete if cm_close/abort fails the request */
if (close_ret) if (close_ret)
bnx2i_ep->state = EP_STATE_DISCONN_COMPL; printk(KERN_ALERT "bnx2i: %s close/abort(%d) returned %d\n",
bnx2i_ep->hba->netdev->name, close, close_ret);
else
/* wait for option-2 conn teardown */ /* wait for option-2 conn teardown */
wait_event_interruptible(bnx2i_ep->ofld_wait, wait_event_interruptible(bnx2i_ep->ofld_wait,
bnx2i_ep->state != EP_STATE_DISCONN_START); bnx2i_ep->state != EP_STATE_DISCONN_START);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment