dmaengine: idxd: rate limit printk in misc interrupt thread
authorDave Jiang <dave.jiang@intel.com>
Sun, 24 Sep 2023 00:23:47 +0000 (17:23 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 28 Sep 2023 07:55:41 +0000 (13:25 +0530)
commit555921feb2ac03d88647ccc62015e68f157c30a2
treeebbce9354bef7fba1f6b271ccd2bfbd4da1eeabd
parentb1c50ac25425385b576dd58b7b38c1c5963dde85
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>
drivers/dma/idxd/irq.c