]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Set sc_data_direction to DMA_NONE for no-transfer commands
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Oct 2020 20:06:11 +0000 (22:06 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Oct 2020 20:23:09 +0000 (16:23 -0400)
commita8b45c4209f6b2b5889af524b8d5c9bcc89a0cc9
tree7595b673110e45a9cb25b609b243c5a2ca8d5e2f
parent68f0cc05c4241ac1d3683f009fc520d27688a7a8
scsi: core: Set sc_data_direction to DMA_NONE for no-transfer commands

No having the special DMA_NONE logic makes libata rather unhappy.

Link: https://lore.kernel.org/r/20201008200611.1818099-3-hch@lst.de
Fixes: 5ff522b26456 ("scsi: core: Use rq_dma_dir in scsi_setup_cmnd()")
Reported-by: Qian Cai <cai@redhat.com>
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c