scsi: reduce use of block bounce buffers
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Apr 2018 17:09:59 +0000 (19:09 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 May 2018 05:15:41 +0000 (07:15 +0200)
commit21e07dba9fb1179148089d611fc9e6e70d1887c3
tree57691b4a8701e9c8d6e92428f69f05892be18f4c
parentde7eab301de78869322104ea13e124c936ad3e1f
scsi: reduce use of block bounce buffers

We can rely on the dma-mapping code to handle any DMA limits that is
bigger than the ISA DMA mask for us (either using an iommu or swiotlb),
so remove setting the block layer bounce limit for anything but the
unchecked_isa_dma case, or the bouncing for highmem pages.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_lib.c