]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: remove a bogus pci_dma_sync_single_for_device call
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Oct 2018 07:16:13 +0000 (09:16 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 02:41:00 +0000 (22:41 -0400)
commit7b1d772061bf1d4614f99650b26a2dfbaa61b47c
treec65c58c3b1c8a62b679042edd05f83be8cbf2e5c
parent23e0068cd6cb10448509f58fc3cdf07320d5b8af
scsi: lpfc: remove a bogus pci_dma_sync_single_for_device call

dma_alloc_coherent allocates memory that can be used by the cpu and the
device at the same time, calls to pci_dma_sync_* are not required, and in
fact actively harmful on some architectures like arm.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_bsg.c