]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: drop cmds/tmrs arrived while session is being deleted
authorAlexei Potashnik <alexei@purestorage.com>
Tue, 14 Jul 2015 20:00:48 +0000 (16:00 -0400)
committerBrian Maly <brian.maly@oracle.com>
Thu, 2 Nov 2017 18:14:13 +0000 (14:14 -0400)
commit8c87c41d25bc0c6c53ccd0062c4efcd8002afb18
tree23fdd395a00ed66b873b8963c62a15b62398fbeb
parent01fbc00e31334cbf745bb32aac6461deda7069b7
qla2xxx: drop cmds/tmrs arrived while session is being deleted

Orabug: 2684419726923029

If a new initiator (different WWN) shows up on the same fcport, old
initiator's session is scheduled for deletion. But there is a small
window between it being marked with QLA_SESS_DELETION_IN_PROGRESS
and qlt_unret_sess getting called when new session's commands will
keep finding old session in the fcport map.

This patch drops cmds/tmrs if they find session in the progress of
being deleted.

Cc: <stable@vger.kernel.org> # v3.18+
Signed-off-by: Alexei Potashnik <alexei@purestorage.com>
Acked-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/qla2xxx/qla_target.c