diff options
author | Gleb Chesnokov <[email protected]> | 2022-04-15 12:42:29 +0000 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-05-02 20:36:15 -0400 |
commit | 26f9ce53817a8fd84b69a73473a7de852a24c897 (patch) | |
tree | 11c15d649de1049c87243d22df48179e53df584d /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | 6056a92ceb2a7705d61df7ec5370548e96aee258 (diff) |
scsi: qla2xxx: Fix missed DMA unmap for aborted commands
Aborting commands that have already been sent to the firmware can
cause BUG in qlt_free_cmd(): BUG_ON(cmd->sg_mapped)
For instance:
- Command passes rdx_to_xfer state, maps sgl, sends to the firmware
- Reset occurs, qla2xxx performs ISP error recovery, aborts the command
- Target stack calls qlt_abort_cmd() and then qlt_free_cmd()
- BUG_ON(cmd->sg_mapped) in qlt_free_cmd() occurs because sgl was not
unmapped
Thus, unmap sgl in qlt_abort_cmd() for commands with the aborted flag set.
Link: https://lore.kernel.org/r/AS8PR10MB4952D545F84B6B1DFD39EC1E9DEE9@AS8PR10MB4952.EURPRD10.PROD.OUTLOOK.COM
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Gleb Chesnokov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions