]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: iscsi: Move pool freeing
authorMike Christie <michael.christie@oracle.com>
Thu, 8 Jan 2026 06:22:21 +0000 (22:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:12:06 +0000 (13:12 +0100)
commit1bbc51778f574146a11eb4aae832b067b3af583d
treee11325af04c583bcc9b4e094756059f3cab84a55
parentc182e1e0b7640f6bcc0c5ca8d473f7c57199ea3d
scsi: iscsi: Move pool freeing

[ Upstream commit a1f3486b3b095ed2259d7a1fc021a8b6e72a5365 ]

This doesn't fix any bugs, but it makes more sense to free the pool after
we have removed the session. At that time we know nothing is touching any
of the session fields, because all devices have been removed and scans are
stopped.

Link: https://lore.kernel.org/r/20210525181821.7617-19-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
[Shivani: Modified to apply on 5.10.y]
Signed-off-by: Shivani Agarwal <shivani.agarwal@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/libiscsi.c