WSL2-Linux-Kernel/drivers/target/iscsi
Sebastian Andrzej Siewior f88a10f80d scsi: target: iscsi: Redo iscsit_check_session_usage_count() return code
The return value of iscsit_check_session_usage_count() is only checked if
it was not allowed to sleep. If it returns `2' then a timer is prepared. If
it returns something else or if it was allowed to sleep then it is ignored.

Let iscsit_check_session_usage_count() return true if it needs to arm the
timer - otherwise false. This simplifies the code flow of the only caller.

Link: https://lore.kernel.org/r/20201220203638.43615-4-bigeasy@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-01-22 20:25:25 -05:00
..
cxgbit treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Kconfig net: add sock_set_reuseaddr 2020-05-28 11:11:44 -07:00
Makefile
iscsi_target.c scsi: target: iscsi: Redo iscsit_check_session_usage_count() return code 2021-01-22 20:25:25 -05:00
iscsi_target.h scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_close_session() 2021-01-22 20:25:25 -05:00
iscsi_target_auth.c mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
iscsi_target_auth.h scsi: target: iscsi: tie the challenge length to the hash digest size 2019-11-06 00:13:24 -05:00
iscsi_target_configfs.c scsi: target: fix hang when multiple threads try to destroy the same iscsi session 2020-03-26 21:47:47 -04:00
iscsi_target_datain_values.c
iscsi_target_datain_values.h
iscsi_target_device.c
iscsi_target_device.h
iscsi_target_erl0.c scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_close_session() 2021-01-22 20:25:25 -05:00
iscsi_target_erl0.h
iscsi_target_erl1.c
iscsi_target_erl1.h
iscsi_target_erl2.c
iscsi_target_erl2.h
iscsi_target_login.c scsi: target: iscsi: Fix hang in iscsit_access_np() when getting tpg->np_login_sem 2020-09-02 21:08:22 -04:00
iscsi_target_login.h scsi: target: iscsi: Fix hang in iscsit_access_np() when getting tpg->np_login_sem 2020-09-02 21:08:22 -04:00
iscsi_target_nego.c scsi: target: iscsi: Fix hang in iscsit_access_np() when getting tpg->np_login_sem 2020-09-02 21:08:22 -04:00
iscsi_target_nego.h
iscsi_target_nodeattrib.c
iscsi_target_nodeattrib.h
iscsi_target_parameters.c
iscsi_target_parameters.h scsi: target: remove unused extension parameters 2019-10-22 22:14:25 -04:00
iscsi_target_seq_pdu_list.c
iscsi_target_seq_pdu_list.h
iscsi_target_stat.c
iscsi_target_tmr.c
iscsi_target_tmr.h
iscsi_target_tpg.c
iscsi_target_tpg.h
iscsi_target_transport.c scsi: target: Make iscsit_register_transport() return void 2020-08-04 20:56:56 -04:00
iscsi_target_util.c scsi: target: iscsi: Redo iscsit_check_session_usage_count() return code 2021-01-22 20:25:25 -05:00
iscsi_target_util.h scsi: target: iscsi: Redo iscsit_check_session_usage_count() return code 2021-01-22 20:25:25 -05:00