diff options
| author | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-02-26 22:19:15 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-08-26 19:30:30 +0200 |
| commit | c253800524a02097c66b91b11b66996cab155590 (patch) | |
| tree | 120e72adbc5ab4067de1a8b5588172d2bc26bced /include/uapi/linux/android | |
| parent | 6447b72847d3a4daad96d7e81624c2085c491dc4 (diff) | |
iscsi-target: Convert iscsi_thread_set usage to kthread.h
commit 88dcd2dab5c23b1c9cfc396246d8f476c872f0ca upstream.
This patch converts iscsi-target code to use modern kthread.h API
callers for creating RX/TX threads for each new iscsi_conn descriptor,
and releasing associated RX/TX threads during connection shutdown.
This is done using iscsit_start_kthreads() -> kthread_run() to start
new kthreads from within iscsi_post_login_handler(), and invoking
kthread_stop() from existing iscsit_close_connection() code.
Also, convert iscsit_logout_post_handler_closesession() code to use
cmpxchg when determing when iscsit_cause_connection_reinstatement()
needs to sleep waiting for completion.
Reported-by: Sagi Grimberg <sagig@mellanox.com>
Tested-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Slava Shwartsman <valyushash@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'include/uapi/linux/android')
0 files changed, 0 insertions, 0 deletions
