mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
[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>
This commit is contained in:
parent
fda38518f2
commit
51f52a4752
1 changed files with 2 additions and 1 deletions
|
@ -5200,7 +5200,8 @@ static int ipr_build_ioadl64(struct ipr_ioa_cfg *ioa_cfg,
|
||||||
|
|
||||||
nseg = scsi_dma_map(scsi_cmd);
|
nseg = scsi_dma_map(scsi_cmd);
|
||||||
if (nseg < 0) {
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue