提交 1c50ff42 编写于 作者: V Varun Prakash 提交者: Nicholas Bellinger

iscsi-target: clear tx_thread_active

clear tx_thread_active for ISCSI_HW_OFFLOAD
transport in logout_post_handler functions.
Signed-off-by: NVarun Prakash <varun@chelsio.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 1c46960e
......@@ -4379,7 +4379,8 @@ static void iscsit_logout_post_handler_closesession(
* always sleep waiting for RX/TX thread shutdown to complete
* within iscsit_close_connection().
*/
if (conn->conn_transport->transport_type == ISCSI_TCP)
if ((conn->conn_transport->transport_type == ISCSI_TCP) ||
(conn->conn_transport->transport_type == ISCSI_HW_OFFLOAD))
sleep = cmpxchg(&conn->tx_thread_active, true, false);
atomic_set(&conn->conn_logout_remove, 0);
......@@ -4396,7 +4397,8 @@ static void iscsit_logout_post_handler_samecid(
{
int sleep = 1;
if (conn->conn_transport->transport_type == ISCSI_TCP)
if ((conn->conn_transport->transport_type == ISCSI_TCP) ||
(conn->conn_transport->transport_type == ISCSI_HW_OFFLOAD))
sleep = cmpxchg(&conn->tx_thread_active, true, false);
atomic_set(&conn->conn_logout_remove, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册