diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-02-27 05:21:06 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-03-26 17:49:49 -0400 |
commit | 073900bdb4e34109a647c7cb871856a771634460 (patch) | |
tree | ba3f0af323fdf659f088da43780d07de4cb1c6de /include/target | |
parent | 88dcd2dab5c23b1c9cfc396246d8f476c872f0ca (diff) |
iscsi-target: Drop legacy iscsi_target_tq.c logic
Now that iscsi_conn allocates new [rx,tx] threads using kthread.h
primitives on the fly, and kthread_stop() is called directly during
connection shutdown, it's time to go ahead and drop iscsi_target_tq.c
legacy code.
The use of multiple struct completion in iscsi_activate_thread_set()
has been proven to cause issues during repeated iser login/logout.
Tested-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Slava Shwartsman <valyushash@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/iscsi/iscsi_target_core.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/target/iscsi/iscsi_target_core.h b/include/target/iscsi/iscsi_target_core.h index dd0f3abde75d..0e394a031c28 100644 --- a/include/target/iscsi/iscsi_target_core.h +++ b/include/target/iscsi/iscsi_target_core.h | |||
@@ -20,6 +20,8 @@ | |||
20 | #define ISCSIT_MIN_TAGS 16 | 20 | #define ISCSIT_MIN_TAGS 16 |
21 | #define ISCSIT_EXTRA_TAGS 8 | 21 | #define ISCSIT_EXTRA_TAGS 8 |
22 | #define ISCSIT_TCP_BACKLOG 256 | 22 | #define ISCSIT_TCP_BACKLOG 256 |
23 | #define ISCSI_RX_THREAD_NAME "iscsi_trx" | ||
24 | #define ISCSI_TX_THREAD_NAME "iscsi_ttx" | ||
23 | 25 | ||
24 | /* struct iscsi_node_attrib sanity values */ | 26 | /* struct iscsi_node_attrib sanity values */ |
25 | #define NA_DATAOUT_TIMEOUT 3 | 27 | #define NA_DATAOUT_TIMEOUT 3 |
@@ -600,8 +602,6 @@ struct iscsi_conn { | |||
600 | struct iscsi_tpg_np *tpg_np; | 602 | struct iscsi_tpg_np *tpg_np; |
601 | /* Pointer to parent session */ | 603 | /* Pointer to parent session */ |
602 | struct iscsi_session *sess; | 604 | struct iscsi_session *sess; |
603 | /* Pointer to thread_set in use for this conn's threads */ | ||
604 | struct iscsi_thread_set *thread_set; | ||
605 | int bitmap_id; | 605 | int bitmap_id; |
606 | int rx_thread_active; | 606 | int rx_thread_active; |
607 | struct task_struct *rx_thread; | 607 | struct task_struct *rx_thread; |
@@ -877,8 +877,6 @@ struct iscsit_global { | |||
877 | u32 auth_id; | 877 | u32 auth_id; |
878 | u32 inactive_ts; | 878 | u32 inactive_ts; |
879 | #define ISCSIT_BITMAP_BITS 262144 | 879 | #define ISCSIT_BITMAP_BITS 262144 |
880 | /* Thread Set bitmap count */ | ||
881 | int ts_bitmap_count; | ||
882 | /* Thread Set bitmap pointer */ | 880 | /* Thread Set bitmap pointer */ |
883 | unsigned long *ts_bitmap; | 881 | unsigned long *ts_bitmap; |
884 | spinlock_t ts_bitmap_lock; | 882 | spinlock_t ts_bitmap_lock; |