scsi: pmcraid: Don't use GFP_DMA in pmcraid_alloc_sglist()
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:22:47 +0000 (10:22 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:44:12 +0000 (23:44 -0500)
The driver doesn't express DMA addressing limitation under 32-bits anywhere
else, so remove the spurious GFP_DMA allocation.

Link: https://lore.kernel.org/r/20211222092247.928711-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c

index 2fe7a00..9285321 100644 (file)
@@ -3221,8 +3221,8 @@ static struct pmcraid_sglist *pmcraid_alloc_sglist(int buflen)
                return NULL;
 
        sglist->order = order;
-       sgl_alloc_order(buflen, order, false,
-                       GFP_KERNEL | GFP_DMA | __GFP_ZERO, &sglist->num_sg);
+       sgl_alloc_order(buflen, order, false, GFP_KERNEL | __GFP_ZERO,
+                       &sglist->num_sg);
 
        return sglist;
 }