From patchwork Wed Jan 3 21:39:12 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: 10143451 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 73CE660594 for ; Wed, 3 Jan 2018 21:39:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6759829361 for ; Wed, 3 Jan 2018 21:39:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C5FB2936D; Wed, 3 Jan 2018 21:39:44 +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 1097C29361 for ; Wed, 3 Jan 2018 21:39:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751196AbeACVjk (ORCPT ); Wed, 3 Jan 2018 16:39:40 -0500 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:15633 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbeACVjj (ORCPT ); Wed, 3 Jan 2018 16:39:39 -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=1515015580; x=1546551580; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=TbvaQW8sxsqut5GttMjDQwqJeu1mLOiiy6sLICvrouw=; b=O2yhvPRgy17W/CXEPXWbZCcGLIXnB6FenjvUUJ1POI1pgZS/Ic3VUDcv gKmnAZr/t9lRkjmGixueC5SBweXP+hLcT9JQXsmcTFRMlDEvS68LXxSkk Hyr6ZKLYXfCR1dH8cg6gKQX7HJo4nkw63HVblJvW1kZOrldu9JTW2day1 lHa2z8XLJtXxoylxAnPbACY3CBX+bLMkK/GK/3tU7GLkDpFi0ozKaBavs fDg1Wswk6AcDas2l5SR8AUL7p6/5ddgH0963t+E3JQL6FNz4KIoAosOp7 21cVR2LXBpWddQ0vSZPgwYtn1PXtpd9fPis5jWYAU8AaykBzfx+u3Yq6T Q==; X-IronPort-AV: E=Sophos;i="5.45,504,1508774400"; d="scan'208";a="67691793" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 04 Jan 2018 05:39:39 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 03 Jan 2018 13:35:48 -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; 03 Jan 2018 13:39:39 -0800 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH 02/28] IB/srp: Make the path record query error message more informative Date: Wed, 3 Jan 2018 13:39:12 -0800 Message-Id: <20180103213938.11664-3-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180103213938.11664-1-bart.vanassche@wdc.com> References: <20180103213938.11664-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 Show all path record query parameters if a path record query fails. Signed-off-by: Bart Van Assche --- drivers/infiniband/ulp/srp/ib_srp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 39b3e43efbbe..fec6e800adf4 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -702,7 +702,10 @@ static int srp_lookup_path(struct srp_rdma_ch *ch) ret = ch->status; if (ret < 0) shost_printk(KERN_WARNING, target->scsi_host, - PFX "Path record query failed\n"); + PFX "Path record query failed: sgid %pI6, dgid %pI6, pkey %#04x, service_id %#16llx\n", + ch->path.sgid.raw, ch->path.dgid.raw, + be16_to_cpu(target->pkey), + be64_to_cpu(target->service_id)); put: scsi_host_put(target->scsi_host);