summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-06-04 19:49:20 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2015-06-09 08:16:40 +0300
commit2f1b6b7d9a815f341b18dfd26a363f37d4d3c96a (patch)
tree123ecc3256ebcd5e2b893aa60df2287492a117a6 /drivers/net/phy/phy.c
parent9253e667ab50fd4611a60e1cdd6a6e05a1d91cf1 (diff)
downloadlinux-2f1b6b7d9a815f341b18dfd26a363f37d4d3c96a.tar.xz
iser-target: release stale iser connections
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> Cc: stable@vger.kernel.org # 3.10+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/net/phy/phy.c')
0 files changed, 0 insertions, 0 deletions