diff options
author | Christoph Hellwig <hch@lst.de> | 2018-10-11 16:17:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-28 18:25:42 +0100 |
commit | 738fd69851a1519d3b339e6fcb9b117bac3da080 (patch) | |
tree | 83b3aeba31eaf244b02a63942920f358990876cb /net/unix/af_unix.c | |
parent | 2b4c4bde8b6eeba938f490bfdbcd36af2539e6be (diff) |
scsi: dc395x: fix dma API usage in srb_done
[ Upstream commit 3a5bd7021184dec2946f2a4d7a8943f8a5713e52 ]
We can't just transfer ownership to the CPU and then unmap, as this will
break with swiotlb.
Instead unmap the command and sense buffer a little earlier in the I/O
completion handler and get rid of the pci_dma_sync_sg_for_cpu call
entirely.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions