Revert "iscsi-target: Avoid IN_LOGOUT failure case for iser-target"
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 26 Feb 2015 06:56:37 +0000 (22:56 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 20 Mar 2015 06:01:10 +0000 (23:01 -0700)
commit2a03ee8c5677acd7ab61b0be7b880b3d3de1bcf2
tree21fd02e18d184d0d69b7e2da779e0ff9e895ef85
parent4b36b68ca8bab6edf7e99f859c42a91f3ad1846e
Revert "iscsi-target: Avoid IN_LOGOUT failure case for iser-target"

This reverts commit 72859d91d93319c00a18c29f577e56bf73a8654a.

The original patch was wrong, iscsit_close_connection() still needs
to release iscsi_conn during both normal + exception IN_LOGOUT status
with ib_isert enabled.

The original OOPs is due to completing conn_logout_comp early within
iscsit_close_connection(), causing isert_wait4logout() to complete
instead of waiting for iscsit_logout_post_handler_*() to be called.

Reported-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Slava Shwartsman <valyushash@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_erl0.c