summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_version.h
diff options
context:
space:
mode:
authorBart Van Assche2019-04-17 23:44:29 +0200
committerMartin K. Petersen2019-04-29 23:24:50 +0200
commitaefed3e5548f28e5fecafda6604fcbc65484dbaa (patch)
treed27409ac287aaac134174d8febe960e30013fc21 /drivers/scsi/qla2xxx/qla_version.h
parentscsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending() (diff)
downloadkernel-qcow2-linux-aefed3e5548f28e5fecafda6604fcbc65484dbaa.tar.gz
kernel-qcow2-linux-aefed3e5548f28e5fecafda6604fcbc65484dbaa.tar.xz
kernel-qcow2-linux-aefed3e5548f28e5fecafda6604fcbc65484dbaa.zip
scsi: qla2xxx: target: Fix offline port handling and host reset handling
Remove the function qlt_abort_cmd_on_host_reset() because it can do the following, all of which can cause a kernel crash: - DMA unmapping while DMA is in progress. - Call target_execute_cmd() while DMA is in progress. - Call transport_generic_free_cmd() while the LIO core owns a command. Instead of trying to abort a command asynchronously, set the 'aborted' flag and handle the abort after the hardware has passed control back to the tcm_qla2xxx driver. Cc: Arun Easi <arun.easi@qlogic.com> Cc: Himanshu Madhani <hmadhani@marvell.com> Cc: Giridhar Malavali <gmalavali@marvell.com> Fixes: c0cb44967b4a ("qla2xxx: Add Host reset handling in target mode.") # v3.18. 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>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_version.h')
0 files changed, 0 insertions, 0 deletions