]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: megaraid_mbox: remove bogus use of pci_dma_sync_sg_* APIs
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Oct 2018 07:15:35 +0000 (09:15 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 02:39:23 +0000 (22:39 -0400)
commit23e0068cd6cb10448509f58fc3cdf07320d5b8af
treeccd44aef32873c0d3ac239ef9c57ba7c97edb0d4
parent9e8baa3600e05c6cf45ecec2217cea3072f83559
scsi: megaraid_mbox: remove bogus use of pci_dma_sync_sg_* APIs

The dma_map_sg / dma_unmap_sg APIs called from scsi_dma_map /
scsi_dma_unmap already transfer memory ownership to the device or cpu
respectively.  Adding additional calls to pci_dma_sync_sg_* will in fact
lead to data corruption if we end up using swiotlb for some reason.

Also remove the now pointless megaraid_mbox_sync_scb function.

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/megaraid/megaraid_mbox.c