scsi: sr: Don't use GFP_DMA
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:08:42 +0000 (10:08 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:41:13 +0000 (23:41 -0500)
commitd94d94969a4ba07a43d62429c60372320519c391
treef601b2c4a2a7c8c9553da70e4a2698ec1772b5e3
parentbc7806b39589f4960d7f583c2381edf2300be48c
scsi: sr: Don't use GFP_DMA

The allocated buffers are used as a command payload, for which the block
layer and/or DMA API do the proper bounce buffering if needed.

Link: https://lore.kernel.org/r/20211222090842.920724-1-hch@lst.de
Reported-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sr.c
drivers/scsi/sr_vendor.c