]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
scsi: sr: Don't use GFP_DMA
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:08:42 +0000 (10:08 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:36:37 +0000 (16:36 +0100)
commitcacef06f2838dcd555b2f6b6153689b4ef7f6ed6
tree0ebde95fdec863d3eddbed2787a933826de5716c
parentbf6125db4b12fa07754c361804e03af6566011d7
scsi: sr: Don't use GFP_DMA

BugLink: https://bugs.launchpad.net/bugs/1960566
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/scsi/sr.c
drivers/scsi/sr_vendor.c