From patchwork Mon Jan 8 19:00:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10150359 X-Patchwork-Delegate: dledford@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 62094601BE for ; Mon, 8 Jan 2018 19:01:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CB88288CA for ; Mon, 8 Jan 2018 19:01:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 619A0289DD; Mon, 8 Jan 2018 19:01:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EC5B288CA for ; Mon, 8 Jan 2018 19:01:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932092AbeAHTA5 (ORCPT ); Mon, 8 Jan 2018 14:00:57 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:28394 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932094AbeAHTAz (ORCPT ); Mon, 8 Jan 2018 14:00:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1515438056; x=1546974056; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ayb+t73s/0uT/MbHB2horsHVOJz5E6DhC7vgvzC3WBo=; b=AmaGvD2jycKU/XlBTQqmh2xs5NKAW1P5ULMTevV4pualgGgFrbuRNf4j O8/DtDMdt3o6zO2n0LWRwYO2eR1QUhx3rKezkJfCtg1PRrfNd8nNb0WOV P5bMXSj5SGGLHtxWWa4t0geCd6We0InZThZsHw+DpbW00VLnL5TmsfyFY GwHqjY4dZ7bgJaePaR2PpYUz0/DBotZho0+6TaJ2/a4OdHd+7pR2jAw/G QxAj7B+e+YqpGX+cOUipFaMOlw3d6+5biINPnmiVZx6ClrHjoFw88yhku NY3H4MDRlJ1vQIlvytOIn9e0ZDPluM+Z13VzaEm34SmiCqUu1kz5G/oMr Q==; X-IronPort-AV: E=Sophos;i="5.46,332,1511798400"; d="scan'208";a="68728518" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 09 Jan 2018 03:00:53 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 08 Jan 2018 10:56:50 -0800 Received: from thinkpad-bart.sdcorp.global.sandisk.com (HELO thinkpad-bart.int.fusionio.com) ([10.11.171.236]) by uls-op-cesaip02.wdc.com with ESMTP; 08 Jan 2018 11:00:53 -0800 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH 09/12] IB/srpt: Reduce frequency of receive failure messages Date: Mon, 8 Jan 2018 11:00:48 -0800 Message-Id: <20180108190051.32008-10-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108190051.32008-1-bart.vanassche@wdc.com> References: <20180108190051.32008-1-bart.vanassche@wdc.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Disabling an SRP target port causes the state of all QPs associated with a port to be changed into IB_QPS_ERR. Avoid that this causes one error message per I/O context to be reported. Signed-off-by: Bart Van Assche --- drivers/infiniband/ulp/srpt/ib_srpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 31b6f108dffb..6f5a4d66eacc 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -1622,8 +1622,8 @@ static void srpt_recv_done(struct ib_cq *cq, struct ib_wc *wc) pr_err("req_lim = %d < 0\n", req_lim); srpt_handle_new_iu(ch, ioctx, NULL); } else { - pr_info("receiving failed for ioctx %p with status %d\n", - ioctx, wc->status); + pr_info_ratelimited("receiving failed for ioctx %p with status %d\n", + ioctx, wc->status); } }