scsi: snic: Don't use GFP_DMA in snic_queue_report_tgt_req()
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:20:48 +0000 (10:20 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:43:23 +0000 (23:43 -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/20211222092048.925829-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/snic/snic_disc.c

index e9ccfb9..27e98df 100644 (file)
@@ -100,7 +100,7 @@ snic_queue_report_tgt_req(struct snic *snic)
        SNIC_BUG_ON(ntgts == 0);
        buf_len = ntgts * sizeof(struct snic_tgt_id) + SNIC_SG_DESC_ALIGN;
 
-       buf = kzalloc(buf_len, GFP_KERNEL|GFP_DMA);
+       buf = kzalloc(buf_len, GFP_KERNEL);
        if (!buf) {
                snic_req_free(snic, rqi);
                SNIC_HOST_ERR(snic->shost, "Resp Buf Alloc Failed.\n");