ipr: Rate limit DMA mapping errors
Subsystems (2)
PATCH RESEND 1/1 ipr: Rate limit DMA mapping errors
Resending this based on James' request that was sent to the linux-scsi list on May 10.
---
I noticed a stream of errors from the IPR driver while doing IOMMU fault injection. Rate limit the errors so we don't clog up the console and logfiles.
Signed-off-by Anton Blanchard <[email protected]>
---
drivers/scsi/ipr.c +2 -1
@@ -5143,7 +5143,8 @@ static int ipr_build_ioadl64(struct ipr_ nseg =scsi_dma_map (scsi_cmd);if (nseg <0 ) { -dev_err (&ioa_cfg->pdev->dev,"pci_map_sg failed!\n" ); +if (printk_ratelimit ()) +dev_err (&ioa_cfg->pdev->dev,"pci_map_sg failed!\n" );return -1 ; }
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html