Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51f52a47 authored by Anton Blanchard's avatar Anton Blanchard Committed by James Bottomley
Browse files

[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: default avatarAnton Blanchard <anton@samba.org>
Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <jbottomley@parallels.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent fda38518
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5200,6 +5200,7 @@ static int ipr_build_ioadl64(struct ipr_ioa_cfg *ioa_cfg,

	nseg = scsi_dma_map(scsi_cmd);
	if (nseg < 0) {
		if (printk_ratelimit())
			dev_err(&ioa_cfg->pdev->dev, "pci_map_sg failed!\n");
		return -1;
	}