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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 19 May 2014 21:32:58 +0000 (14:32 -0700)
commite346ab343f4f58c12a96725c7b13df9cc2ad56f6
tree56838c9dc004b3af44b3346118310ed2940dc609
parent1e1110c43b1cda9fe77fc4a04835e460550e6b3c
Target/iser: Bail from accept_np if np_thread is trying to close

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>
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c