OSDN Git Service

iser-target: Fix logout sequence
authorSagi Grimberg <sagig@mellanox.com>
Sun, 7 Dec 2014 11:12:01 +0000 (13:12 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:32:33 +0000 (23:32 -0800)
commit991bb7640d7e0971c360b6166cbca84a7f502312
tree15a2c654a625cdfb9e843b65303cd9a209b702e1
parentc7e160ee092059d3d1ddc24397c9d7a4dbe8186a
iser-target: Fix logout sequence

We don't want to wait for conn_logout_comp from isert_comp_wq
context as this blocks further completions from being processed.
Instead we wait for it conditionally (if logout response was
actually posted) in wait_conn. This wait should normally happen
immediately as it occurs after we consumed all the completions
(including flush errors) and conn_logout_comp should have been
completed.

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