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)
commit67d98f0a83f8d5eafe8f584fef70b1d790a36411
treeccd44aef32873c0d3ac239ef9c57ba7c97edb0d4
parentca2ade24157693b4e533ccec69df00ef719d4aad
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