Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933271AbbFIOrp (ORCPT ); Tue, 9 Jun 2015 10:47:45 -0400 Received: from mailuogwhop.emc.com ([168.159.213.141]:36847 "EHLO mailuogwhop.emc.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752804AbbFIOrf (ORCPT ); Tue, 9 Jun 2015 10:47:35 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd04.lss.emc.com t59EjVrX020744 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd04.lss.emc.com t59EjVrX020744 From: Allen Hubbe To: linux-ntb@googlegroups.com Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Jon Mason , Dave Jiang , Allen Hubbe Subject: [PATCH v3 12/18] NTB: Rate limit ntb_qp_link_work Date: Tue, 9 Jun 2015 05:44:39 -0400 Message-Id: X-Mailer: git-send-email 2.4.0.rc0.44.g244209c.dirty In-Reply-To: References: In-Reply-To: References: X-RSA-Classifications: public X-Sentrion-Hostname: mailuogwprd04.lss.emc.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 30 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 --- drivers/ntb/ntb_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c index 2efd1eae9a7c..8ce0bf67ac20 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)) { -- 2.4.0.rc0.43.gcf8a8c6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/