Target/iser: Avoid calling rdma_disconnect twice
authorSagi Grimberg <sagig@mellanox.com>
Wed, 2 Jul 2014 13:19:26 +0000 (16:19 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 15 Sep 2014 21:02:30 +0000 (14:02 -0700)
commit38a8316b5d80ddee071d493bae567185c07de359
treeaf8a207e66b220edb57aa2a6b8d27bba6a9c490d
parent0fc4ea701fcf5bc51ace4e288af5be741465f776
Target/iser: Avoid calling rdma_disconnect twice

rdma_disconnect may be called in 2 code flows:
- isert_wait_conn: disconnect initiated be the target
- disconnected_handler: disconnect invoked by the initiator

In case isert_conn->disconnect is true then rdma_disconnect
was called in disconnected handler, no need to call it again
from isert_wait_conn.

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