aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-05-08 20:07:40 -0400
committerJames Bottomley <jbottomley@parallels.com>2011-05-17 03:17:07 -0400
commit51f52a47527a07e45746b1bac1ab6123892095a0 (patch)
tree709a14b83e78ea467d5dd1581b55f637a8390885 /drivers/scsi/ipr.c
parentfda38518f236cbd965110938e324f6c6fcc91f38 (diff)
[SCSI] ipr: Rate limit DMA mapping errors
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 <anton@samba.org> Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <jbottomley@parallels.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r--drivers/scsi/ipr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 3667f89abdea..12868ca46110 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -5200,7 +5200,8 @@ static int ipr_build_ioadl64(struct ipr_ioa_cfg *ioa_cfg,
5200 5200
5201 nseg = scsi_dma_map(scsi_cmd); 5201 nseg = scsi_dma_map(scsi_cmd);
5202 if (nseg < 0) { 5202 if (nseg < 0) {
5203 dev_err(&ioa_cfg->pdev->dev, "pci_map_sg failed!\n"); 5203 if (printk_ratelimit())
5204 dev_err(&ioa_cfg->pdev->dev, "pci_map_sg failed!\n");
5204 return -1; 5205 return -1;
5205 } 5206 }
5206 5207