]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94f5805f20f204f4c702ffd87e74348200569842
tree15a2c654a625cdfb9e843b65303cd9a209b702e1
parent8d6381213c510b9185c6d558ba47cc7550cb5f07
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