diff options
author | Anton Blanchard <anton@samba.org> | 2011-05-09 10:07:40 +1000 |
---|---|---|
committer | James Bottomley <jbottomley@parallels.com> | 2011-05-17 11:17:07 +0400 |
commit | 51f52a47527a07e45746b1bac1ab6123892095a0 (patch) | |
tree | 709a14b83e78ea467d5dd1581b55f637a8390885 /drivers/scsi/ipr.c | |
parent | fda38518f236cbd965110938e324f6c6fcc91f38 (diff) | |
download | blackbird-obmc-linux-51f52a47527a07e45746b1bac1ab6123892095a0.tar.gz blackbird-obmc-linux-51f52a47527a07e45746b1bac1ab6123892095a0.zip |
[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.c | 3 |
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, 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; } |