diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-04-17 23:44:29 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-29 23:24:50 +0200 |
commit | aefed3e5548f28e5fecafda6604fcbc65484dbaa (patch) | |
tree | d27409ac287aaac134174d8febe960e30013fc21 /drivers/ipack | |
parent | scsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending() (diff) | |
download | linux-aefed3e5548f28e5fecafda6604fcbc65484dbaa.tar.xz 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/ipack')
0 files changed, 0 insertions, 0 deletions