diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2020-12-20 23:36:35 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-01-23 04:25:25 +0300 |
commit | f88a10f80da9ed1ab1ba7496b70e9a0cdd8f7cf8 (patch) | |
tree | 38e8b5e6a70a661de1e6c27dc6035173eb0a72a5 /block | |
parent | efc9d73063c15f1aba8920b9f9ceaba4f3fb8ed9 (diff) | |
download | linux-f88a10f80da9ed1ab1ba7496b70e9a0cdd8f7cf8.tar.xz |
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 'block')
0 files changed, 0 insertions, 0 deletions