aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2017-05-27 20:22:51 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-02 14:59:19 -0400
commite0f8e8cf3bf9305f36155a5ac6e16b3b910e6cec (patch)
tree91a7bc5fa15c4065dffea3bcb162cbaa37ef8a65 /drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
parentscsi: scsi_debug: Avoid PI being disabled when TPGS is enabled (diff)
downloadlinux-dev-e0f8e8cf3bf9305f36155a5ac6e16b3b910e6cec.tar.xz
linux-dev-e0f8e8cf3bf9305f36155a5ac6e16b3b910e6cec.zip
scsi: cxgb4i: libcxgbi: in error case RST tcp conn
If logout response is not received and ->ep_disconnect() is called then close tcp conn by RST instead of FIN to cleanup conn resources immediately. Also move ->csk_push_tx_frames() above 'done:' to avoid calling ->csk_push_tx_frames() in error cases. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxgbi/cxgb4i/cxgb4i.c')
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 1076c1578322..0aae094ab91c 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -1595,7 +1595,6 @@ static void release_offload_resources(struct cxgbi_sock *csk)
cxgbi_sock_put(csk);
}
csk->dst = NULL;
- csk->cdev = NULL;
}
static int init_act_open(struct cxgbi_sock *csk)