]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf87a99a9ea79b3a043d96fc7d2fa49cfe8dd8e40
tree5ee63f064d94f864cf1877ee6e6363ab8621d675
parenta2c9cf6c113cdf1a1c90635594db3340d0d26857
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