diff options
author | Anish Bhatt <anish@chelsio.com> | 2014-11-19 04:09:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-19 22:59:26 +0100 |
commit | ee7255ada313a6db99be47ce174b0bfb8295a041 (patch) | |
tree | 068f848d1f7921ea58036a0f02935e107db4c1d9 /drivers/scsi/cxgbi/libcxgbi.c | |
parent | ipv6: delete protocol and unregister rtnetlink when cleanup (diff) | |
download | linux-ee7255ada313a6db99be47ce174b0bfb8295a041.tar.xz linux-ee7255ada313a6db99be47ce174b0bfb8295a041.zip |
cxgb4i : Don't block unload/cxgb4 unload when remote closes TCP connection
cxgb4i was returning wrong error and not releasing module reference if remote
end abruptly closed TCP connection. This prevents the cxgb4 network module from
being unloaded, further affecting other network drivers dependent on cxgb4
Sending to net as this affects all cxgb4 based network drivers.
Signed-off-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/cxgbi/libcxgbi.c')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c index 674d498b46ab..9d63853c5fce 100644 --- a/drivers/scsi/cxgbi/libcxgbi.c +++ b/drivers/scsi/cxgbi/libcxgbi.c @@ -816,7 +816,7 @@ static void cxgbi_inform_iscsi_conn_closing(struct cxgbi_sock *csk) read_lock_bh(&csk->callback_lock); if (csk->user_data) iscsi_conn_failure(csk->user_data, - ISCSI_ERR_CONN_FAILED); + ISCSI_ERR_TCP_CONN_CLOSE); read_unlock_bh(&csk->callback_lock); } } |