]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
scsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending()
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:28 +0000 (14:44 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commit272865ddbfad1eb566af660c58839e2d312ce479
tree210316cdd37a7788dee69ad321f3d511e4015eb8
parentf6a2d92006714c8006a017045da7f331df4e63e5
scsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending()

BugLink: https://bugs.launchpad.net/bugs/1837517
[ Upstream commit e209783d66bca04b5fce4429e59338517ffc1a0b ]

Implementations of the .write_pending() callback functions must guarantee
that an appropriate LIO core callback function will be called immediately or
at a later time.  Make sure that this guarantee is met for aborted SCSI
commands.

[mkp: typo]

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Fixes: 694833ee00c4 ("scsi: tcm_qla2xxx: Do not allow aborted cmd to advance.") # v4.13.
Fixes: a07100e00ac4 ("qla2xxx: Fix TMR ABORT interaction issue between qla2xxx and TCM") # v4.5.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/scsi/qla2xxx/tcm_qla2xxx.c