linux/drivers/infiniband/ulp
Nicholas Bellinger b2cb96494d iser-target: Fix session reset bug with RDMA_CM_EVENT_DISCONNECTED
This patch addresses a bug where RDMA_CM_EVENT_DISCONNECTED may occur
before the connection shutdown has been completed by rx/tx threads,
that causes isert_free_conn() to wait indefinately on ->conn_wait.

This patch allows isert_disconnect_work code to invoke rdma_disconnect
when isert_disconnect_work() process context is started by client
session reset before isert_free_conn() code has been reached.

It also adds isert_conn->conn_mutex protection for ->state within
isert_disconnect_work(), isert_cq_comp_err() and isert_free_conn()
code, along with isert_check_state() for wait_event usage.

(v2: Add explicit iscsit_cause_connection_reinstatement call
     during isert_disconnect_work() to force conn reset)

Cc: stable@vger.kernel.org  # 3.10+
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2013-07-07 18:35:56 -07:00
..
ipoib InfiniBand/RDMA changes for the 3.10 merge window: 2013-05-08 15:29:48 -07:00
iser IB/iser: Add Mellanox copyright 2013-06-04 17:03:12 -07:00
isert iser-target: Fix session reset bug with RDMA_CM_EVENT_DISCONNECTED 2013-07-07 18:35:56 -07:00
srp IB/srp: Fail I/O requests if the transport is offline 2013-02-25 09:31:14 -08:00
srpt ib_srpt: Call target_sess_cmd_list_set_waiting during shutdown_session 2013-05-29 21:30:46 -07:00