scsi: sr: Don't use GFP_DMA
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:08:42 +0000 (10:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:03 +0000 (11:05 +0100)
commitf325446b5a18da23790bd86f83853a3542d5146e
treed82da6e2da47467148cc6f5e4965c77b5e87a992
parent6af33b200b7fa4e53431a96a6b405873f6426ae2
scsi: sr: Don't use GFP_DMA

[ Upstream commit d94d94969a4ba07a43d62429c60372320519c391 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/sr.c
drivers/scsi/sr_vendor.c