diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2014-12-02 16:57:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-27 08:29:37 -0800 |
commit | 988168465f4528fe6eafce5d88f3c5b55edf9108 (patch) | |
tree | 81c3e2c8c948b934da5a7afe12cb28445cf12e07 /samples | |
parent | 2fc431d1bd9e9fd04e5cd34a39f58cf85dadd4b5 (diff) | |
download | lwn-988168465f4528fe6eafce5d88f3c5b55edf9108.tar.gz lwn-988168465f4528fe6eafce5d88f3c5b55edf9108.zip |
iscsi,iser-target: Initiate termination only once
commit 954f23722b5753305be490330cf2680b7a25f4a3 upstream.
Since commit 0fc4ea701fcf ("Target/iser: Don't put isert_conn inside
disconnected handler") we put the conn kref in isert_wait_conn, so we
need .wait_conn to be invoked also in the error path.
Introduce call to isert_conn_terminate (called under lock)
which transitions the connection state to TERMINATING and calls
rdma_disconnect. If the state is already teminating, just bail
out back (temination started).
Also, make sure to destroy the connection when getting a connect
error event if didn't get to connected (state UP). Same for the
handling of REJECTED and UNREACHABLE cma events.
Squashed:
iscsi-target: Add call to wait_conn in establishment error flow
Reported-by: Slava Shwartsman <valyushash@gmail.com>
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions