iser-target: Work-around live target stack shutdown resource cleanup
authorSagi Grimberg <sagig@mellanox.com>
Tue, 2 Dec 2014 14:57:36 +0000 (16:57 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:32:27 +0000 (23:32 -0800)
commit268e6811f5729fb9ce7415586bd992b504fe95a2
tree5ee63f064d94f864cf1877ee6e6363ab8621d675
parent23a548ee656c8ba6da8cb2412070edcd62e2ac5d
iser-target: Work-around live target stack shutdown resource cleanup

Currently we have no way to tell that the target stack is in shutdown
sequence. In case we have open connections, the initiator immediately
attempts to reconnect in a DDOS attack style, so we may end up
terminating the iser enabled network portal while it's np_accept_list
still have pending connections.

The workaround is simply release all the connections in the list.
A proper fix will be to start shutdown sequence by shutting the
network portal to avoid initiator immediate reconnect attempts.

But the temporary work around seems to work at this point, so I think
we can do this for now...

Reported-by: Slava Shwartsman <valyushash@gmail.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c