From: Allen Hubbe Date: Mon, 11 May 2015 14:08:26 +0000 (-0400) Subject: NTB: Rate limit ntb_qp_link_work X-Git-Tag: v4.2-rc1~5^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2876228941ac5dcab12854aa5a3462b3f2274b09;p=platform%2Fkernel%2Flinux-exynos.git NTB: Rate limit ntb_qp_link_work When the ntb transport is connecting and waiting for the peer, the debug console receives lots of debug level messages about the remote qp link status being down. Rate limit those messages. Signed-off-by: Allen Hubbe Signed-off-by: Jon Mason --- diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 2efd1ea..8ce0bf6 100644 --- a/drivers/ntb/ntb_transport.c +++ b/drivers/ntb/ntb_transport.c @@ -850,7 +850,7 @@ static void ntb_qp_link_work(struct work_struct *work) /* query remote spad for qp ready bits */ ntb_peer_spad_read(nt->ndev, QP_LINKS); - dev_dbg(&pdev->dev, "Remote QP link status = %x\n", val); + dev_dbg_ratelimited(&pdev->dev, "Remote QP link status = %x\n", val); /* See if the remote side is up */ if (val & BIT(qp->qp_num)) {