]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71b87cef3cf8bc92986f545996b99789c9e7006f
tree56838c9dc004b3af44b3346118310ed2940dc609
parentdc9721c642091354311126b44ecd8427041a4d3d
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