[SCSI] bnx2i: Added chip cleanup for the remove module path
In the case when an ep_connect request is interrupted due to route request stall, if the iSCSI daemon is terminated by the user, the chip will be left in a state which will not get cleaned up upon module removal. Upon module reload, when the same context id is used for a new connection, chip panic would occur. This patch adds chip cleanup in the module removal path. Signed-off-by: Eddie Wai <eddie.wai@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>
This commit is contained in:
committed by
James Bottomley
parent
2c2255e08d
commit
250ae982e2
@@ -1953,6 +1953,9 @@ int bnx2i_hw_ep_disconnect(struct bnx2i_endpoint *bnx2i_ep)
|
||||
if (!cnic)
|
||||
return 0;
|
||||
|
||||
if (bnx2i_ep->state == EP_STATE_IDLE)
|
||||
return 0;
|
||||
|
||||
if (!bnx2i_ep_tcp_conn_active(bnx2i_ep))
|
||||
goto destroy_conn;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user