diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-12-20 21:36:35 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-01-23 02:25:25 +0100 |
commit | f88a10f80da9ed1ab1ba7496b70e9a0cdd8f7cf8 (patch) | |
tree | 38e8b5e6a70a661de1e6c27dc6035173eb0a72a5 /drivers/target/loopback | |
parent | scsi: target: iscsi: Avoid in_interrupt() usage in iscsit_check_session_usage... (diff) | |
download | linux-f88a10f80da9ed1ab1ba7496b70e9a0cdd8f7cf8.tar.xz linux-f88a10f80da9ed1ab1ba7496b70e9a0cdd8f7cf8.zip |
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>
Diffstat (limited to 'drivers/target/loopback')
0 files changed, 0 insertions, 0 deletions