aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-02-20 12:17:40 +0900
committerMartin K. Petersen <[email protected]>2022-02-22 21:31:16 -0500
commit8454563e4c2aafbfb81a383ab423ea8b9b430a25 (patch)
treef1b5b9d11f6f9b34ef24e92f5a4b60151e4541fa /tools/perf/scripts/python
parent07dd40b3078f50c517104f1a304335d897d74101 (diff)
scsi: libsas: Fix sas_ata_qc_issue() handling of NCQ NON DATA commands
To detect for the DMA_NONE (no data transfer) DMA direction, sas_ata_qc_issue() tests if the command protocol is ATA_PROT_NODATA. This test does not include the ATA_CMD_NCQ_NON_DATA command as this command protocol is defined as ATA_PROT_NCQ_NODATA (equal to ATA_PROT_FLAG_NCQ) and not as ATA_PROT_NODATA. To include both NCQ and non-NCQ commands when testing for the DMA_NONE DMA direction, use "!ata_is_data()". Link: https://lore.kernel.org/r/[email protected] Fixes: 176ddd89171d ("scsi: libsas: Reset num_scatter if libata marks qc as NODATA") Cc: [email protected] Reviewed-by: John Garry <[email protected]> Reviewed-by: Jack Wang <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions