linux/drivers/infiniband/ulp
Sagi Grimberg a924224893 iser-target: release stale iser connections
commit 2f1b6b7d9a upstream.

When receiving a new iser connect request we serialize
the pending requests by adding the newly created iser connection
to the np accept list and let the login thread process the connect
request one by one (np_accept_wait).

In case we received a disconnect request before the iser_conn
has begun processing (still linked in np_accept_list) we should
detach it from the list and clean it up and not have the login
thread process a stale connection. We do it only when the connection
state is not already terminating (initiator driven disconnect) as
this might lead us to access np_accept_mutex after the np was released
in live shutdown scenarios.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jenny Falkovich <jennyf@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
[ luis: backported to 3.16:
  - use 'conn_accept_node' instead of 'accept_node' (field renamed by
    dac6ab305d "iser-target: Remove conn_ prefix from struct isert_conn members")
  - adjusted context ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-06-30 17:15:26 +01:00
..
ipoib Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-06-12 14:27:40 -07:00
iser IB/iser: Fix wrong calculation of protection buffer length 2015-05-06 11:33:08 +01:00
isert iser-target: release stale iser connections 2015-06-30 17:15:26 +01:00
srp IB/srp: Fix deadlock between host removal and multipathd 2014-09-17 09:22:21 -07:00
srpt srp-target: Retry when QP creation fails with ENOMEM 2014-12-01 10:02:11 +00:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00