diff options
author | Varun Prakash <varun@chelsio.com> | 2016-04-19 14:30:17 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-05-10 02:12:19 -0400 |
commit | 1c50ff424e3d9a392ec2df797c3b6083ed70fca6 (patch) | |
tree | cfff2f6f1a7619b96304ded6d5c07896df4e32e4 /drivers/target/iscsi/iscsi_target.c | |
parent | 1c46960e3310adf6ac95078210fdb16987c3b31d (diff) |
iscsi-target: clear tx_thread_active
clear tx_thread_active for ISCSI_HW_OFFLOAD
transport in logout_post_handler functions.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 348337c539f0..29df956ed0cc 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -4379,7 +4379,8 @@ static void iscsit_logout_post_handler_closesession( | |||
4379 | * always sleep waiting for RX/TX thread shutdown to complete | 4379 | * always sleep waiting for RX/TX thread shutdown to complete |
4380 | * within iscsit_close_connection(). | 4380 | * within iscsit_close_connection(). |
4381 | */ | 4381 | */ |
4382 | if (conn->conn_transport->transport_type == ISCSI_TCP) | 4382 | if ((conn->conn_transport->transport_type == ISCSI_TCP) || |
4383 | (conn->conn_transport->transport_type == ISCSI_HW_OFFLOAD)) | ||
4383 | sleep = cmpxchg(&conn->tx_thread_active, true, false); | 4384 | sleep = cmpxchg(&conn->tx_thread_active, true, false); |
4384 | 4385 | ||
4385 | atomic_set(&conn->conn_logout_remove, 0); | 4386 | atomic_set(&conn->conn_logout_remove, 0); |
@@ -4396,7 +4397,8 @@ static void iscsit_logout_post_handler_samecid( | |||
4396 | { | 4397 | { |
4397 | int sleep = 1; | 4398 | int sleep = 1; |
4398 | 4399 | ||
4399 | if (conn->conn_transport->transport_type == ISCSI_TCP) | 4400 | if ((conn->conn_transport->transport_type == ISCSI_TCP) || |
4401 | (conn->conn_transport->transport_type == ISCSI_HW_OFFLOAD)) | ||
4400 | sleep = cmpxchg(&conn->tx_thread_active, true, false); | 4402 | sleep = cmpxchg(&conn->tx_thread_active, true, false); |
4401 | 4403 | ||
4402 | atomic_set(&conn->conn_logout_remove, 0); | 4404 | atomic_set(&conn->conn_logout_remove, 0); |