dmaengine: idxd: rate limit printk in misc interrupt thread
Add rate limit to the dev_warn() call in the misc interrupt thread. This limits dmesg getting spammed if a descriptor submitter is spamming bad descriptors with invalid completion records and resulting the errors being continuously reported by the misc interrupt handling thread. Reported-by: Sanjay Kumar <sanjay.k.kumar@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Fenghua Yu <fenghua.yu@intel.com> Acked-by: Lijun Pan <lijun.pan@intel.com> Link: https://lore.kernel.org/r/20230924002347.1117757-1-fenghua.yu@intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
b1c50ac254
commit
555921feb2
@ -434,8 +434,8 @@ irqreturn_t idxd_misc_thread(int vec, void *data)
|
||||
val |= IDXD_INTC_ERR;
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
dev_warn(dev, "err[%d]: %#16.16llx\n",
|
||||
i, idxd->sw_err.bits[i]);
|
||||
dev_warn_ratelimited(dev, "err[%d]: %#16.16llx\n",
|
||||
i, idxd->sw_err.bits[i]);
|
||||
err = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user