android_kernel_samsung_msm8976/drivers/target
Nicholas Bellinger 49b028d31a 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>
2015-08-03 09:29:46 -07:00
..
iscsi iscsi-target: Convert iscsi_thread_set usage to kthread.h 2015-08-03 09:29:46 -07:00
loopback tcm_loop: Fix wrong I_T nexus association 2015-02-05 22:35:40 -08:00
sbp Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2013-03-02 11:43:27 -08:00
tcm_fc tcm_fc: missing curly braces in ft_invl_hw_context() 2015-04-13 14:02:11 +02:00
Kconfig
Makefile
target_core_alua.c target: Allow READ_CAPACITY opcode in ALUA Standby access state 2014-06-16 13:42:53 -07:00
target_core_alua.h
target_core_configfs.c target: Fix alua_access_state attribute OOPs for un-configured devices 2014-06-16 13:42:53 -07:00
target_core_device.c target: Drop arbitrary maximum I/O size limit 2015-02-05 22:35:41 -08:00
target_core_fabric_configfs.c
target_core_fabric_lib.c
target_core_file.c target: Drop arbitrary maximum I/O size limit 2015-02-05 22:35:41 -08:00
target_core_file.h target/file: Update hw_max_sectors based on current block_size 2014-01-09 12:24:20 -08:00
target_core_hba.c
target_core_iblock.c target: Drop arbitrary maximum I/O size limit 2015-02-05 22:35:41 -08:00
target_core_iblock.h
target_core_internal.h target: Remove unused struct members in se_dev_entry 2013-05-03 16:42:18 -07:00
target_core_pr.c target: Allow Write Exclusive non-reservation holders to READ 2015-03-26 15:01:02 +01:00
target_core_pr.h target: Fix APTPL metadata handling for dynamic MappedLUNs 2014-11-14 08:47:57 -08:00
target_core_pscsi.c target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST 2015-06-05 23:19:55 -07:00
target_core_pscsi.h target/pscsi: Don't leak scsi_host if hba is VIRTUAL_HOST 2015-06-05 23:19:55 -07:00
target_core_rd.c target: Explicitly clear ramdisk_mcp backend pages 2014-06-30 20:09:45 -07:00
target_core_rd.h target/rd: Add ramdisk bit for NULLIO operation 2013-05-11 16:22:39 -07:00
target_core_sbc.c target: Check for LBA + sectors wrap-around in sbc_parse_cdb 2015-03-18 13:22:28 +01:00
target_core_spc.c target: Drop arbitrary maximum I/O size limit 2015-02-05 22:35:41 -08:00
target_core_stat.c
target_core_tmr.c
target_core_tpg.c target: Fix APTPL metadata handling for dynamic MappedLUNs 2014-11-14 08:47:57 -08:00
target_core_transport.c target: Fix reference leak in target_get_sess_cmd() error path 2015-03-26 15:01:01 +01:00
target_core_ua.c
target_core_ua.h