aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2i/bnx2i_iscsi.c
diff options
context:
space:
mode:
authorEddie Wai <eddie.wai@broadcom.com>2010-08-12 19:44:29 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-09-05 13:50:08 -0400
commit2c2255e08dee510c68d641195f83d40899897c65 (patch)
tree7ffa0aa398a940e1d0b0d5c9f189a6fdfadc2eb2 /drivers/scsi/bnx2i/bnx2i_iscsi.c
parentc47b401230895edc94abe2c342811a2171375dbe (diff)
[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: Eddie Wai <eddie.wai@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Acked-by: Benjamin Li <benli@broadcom.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i_iscsi.c')
-rw-r--r--drivers/scsi/bnx2i/bnx2i_iscsi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c
index 36b245b0dd3..0425540d481 100644
--- a/drivers/scsi/bnx2i/bnx2i_iscsi.c
+++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c
@@ -1996,11 +1996,13 @@ int bnx2i_hw_ep_disconnect(struct bnx2i_endpoint *bnx2i_ep)
1996 else 1996 else
1997 close_ret = cnic->cm_abort(bnx2i_ep->cm_sk); 1997 close_ret = cnic->cm_abort(bnx2i_ep->cm_sk);
1998 1998
1999 /* No longer allow CFC delete if cm_close/abort fails the request */
1999 if (close_ret) 2000 if (close_ret)
2000 bnx2i_ep->state = EP_STATE_DISCONN_COMPL; 2001 printk(KERN_ALERT "bnx2i: %s close/abort(%d) returned %d\n",
2001 2002 bnx2i_ep->hba->netdev->name, close, close_ret);
2002 /* wait for option-2 conn teardown */ 2003 else
2003 wait_event_interruptible(bnx2i_ep->ofld_wait, 2004 /* wait for option-2 conn teardown */
2005 wait_event_interruptible(bnx2i_ep->ofld_wait,
2004 bnx2i_ep->state != EP_STATE_DISCONN_START); 2006 bnx2i_ep->state != EP_STATE_DISCONN_START);
2005 2007
2006 if (signal_pending(current)) 2008 if (signal_pending(current))