Target/iser: Don't put isert_conn inside disconnected handler
authorSagi Grimberg <sagig@mellanox.com>
Wed, 2 Jul 2014 13:19:25 +0000 (16:19 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 15 Sep 2014 21:02:16 +0000 (14:02 -0700)
commit0fc4ea701fcf5bc51ace4e288af5be741465f776
treee454f3cba421a073cf64ae3a60a4b28b6a50546a
parentc2f88b17a1d97ca4ecd96cc22333a7a4f1407d39
Target/iser: Don't put isert_conn inside disconnected handler

disconnected_handler is invoked on several CM events (such
as DISCONNECTED, DEVICE_REMOVAL, TIMEWAIT_EXIT...). Since
multiple  events can occur while before isert_free_conn is
invoked, we might put all isert_conn references and free
the connection too early.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c