snic: don't use GFP_DMA in snic_queue_report_tgt_req
Subsystems (2)
PATCH 1/1 snic: don't use GFP_DMA in snic_queue_report_tgt_req
The driver doesn't express DMA addressing limitation under 32-bits anywhere else, so remove the spurious GFP_DMA allocation.
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/scsi/snic/snic_disc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/snic/snic_disc.c +1 -1
@@ -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" );
Signature · 1 line
2.30.2
Martin K. Petersen
AppliedChristoph,
Quoted 2 lines
The driver doesn't express DMA addressing limitation under 32-bits anywhere else, so remove the spurious
GFP_DMAallocation.
Applied to 5.17/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering