diff options
author | Varun Prakash <varun@chelsio.com> | 2017-05-27 16:52:51 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-02 20:59:19 +0200 |
commit | e0f8e8cf3bf9305f36155a5ac6e16b3b910e6cec (patch) | |
tree | 91a7bc5fa15c4065dffea3bcb162cbaa37ef8a65 /drivers/scsi/cxgbi/cxgb4i | |
parent | scsi: scsi_debug: Avoid PI being disabled when TPGS is enabled (diff) | |
download | linux-e0f8e8cf3bf9305f36155a5ac6e16b3b910e6cec.tar.xz linux-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')
-rw-r--r-- | drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 1 |
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) |