summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2020-03-13 18:06:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-21 09:08:16 +0200
commit30855683a7b593c0fbc2d7a6debcfb879c6a5250 (patch)
treef0d02623c8f0f1217fcc6f2879f0ae4d161f9d5d /Makefile
parent696a8c0ec4d118217c1c05606d3427fb10543bbc (diff)
scsi: target: iscsi: calling iscsit_stop_session() inside iscsit_close_session() has no effect
[ Upstream commit 626bac73371eed79e2afa2966de393da96cf925e ] iscsit_close_session() can only be called when nconn is zero (otherwise a kernel panic is triggered). If nconn is zero then iscsit_stop_session() does nothing and exits, so calling it makes no sense. We still need to call iscsit_check_session_usage_count() because this function will sleep if the session's refcount is not zero and we don't want to destroy the session structure if it's still being referenced. Link: https://lore.kernel.org/r/20200313170656.9716-4-mlombard@redhat.com Tested-by: Rahul Kundu <rahul.kundu@chelsio.com> Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions