Target/iser: Bail from accept_np if np_thread is trying to close
authorSagi Grimberg <sagig@mellanox.com>
Mon, 19 May 2014 14:44:22 +0000 (17:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:11:59 +0000 (20:11 -0700)
commit3e41b2b57122819ee833ae377ff125dd13d973a2
treea1f569791257f3a0f6aa8f786f51baee6e47195a
parent951bc3714aa86d08878bd5f71b1e124d87a80c5b
Target/iser: Bail from accept_np if np_thread is trying to close

commit e346ab343f4f58c12a96725c7b13df9cc2ad56f6 upstream.

In case np_thread state is in RESET/SHUTDOWN/EXIT states,
no point for isert to stall there as we may get a hang in
case no one will wake it up later.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c