summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorNigel Kirkland <nkirkland2304@gmail.com>2026-10-12 17:16:43 -0700
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-10-13 23:38:58 -0400
commite7e065ec672af054c50eb270b5a6b178fd46b291 (patch)
treeb101b90fe6410aafa7e8987195a3f5ab626d59bc /tools/lib/python/kdoc/python_version.py
parent86866706d0a9bf0dc4261b6b05b7ec42459e5931 (diff)
downloadlinux-next-e7e065ec672af054c50eb270b5a6b178fd46b291.tar.gz
linux-next-e7e065ec672af054c50eb270b5a6b178fd46b291.zip
scsi: lpfc: Fix kernel oops when unmapping SCSI DMA buffers for an aborted cmd
A kernel oops at dma_unmap_sg_attrs() may occur due to a race between an aborted SCSI I/O completion and a SCSI error handler issued TUR using the same repurposed scsi_cmnd structure. The LPFC_DRIVER_ABORTED cmd_flag is set when inflight I/Os are aborted via lpfc_sli_abort_taskmgmt(), and this flag is not cleared until after scsi_done() is called. The inflight I/O test is changed to check SCSI I/O for either LFPC_IO_ON_TXCMPLQ or LPFC_DRIVER_ABORTED. If either cmd_flag is set, then the I/O should still be counted. Signed-off-by: Nigel Kirkland <nkirkland2304@gmail.com> Tested-by: Ewan D. Milne <emilne@redhat.com> Link: https://patch.msgid.link/20261013001648.62289-4-nkirkland2304@gmail.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions