From patchwork Thu Jan 4 22:28:40 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: 10145689 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 9F74860329 for ; Thu, 4 Jan 2018 22:28:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAB1C2889C for ; Thu, 4 Jan 2018 22:28:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF4E7288A3; Thu, 4 Jan 2018 22:28:46 +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 8FE952889C for ; Thu, 4 Jan 2018 22:28:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753241AbeADW2o (ORCPT ); Thu, 4 Jan 2018 17:28:44 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:34506 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753231AbeADW2n (ORCPT ); Thu, 4 Jan 2018 17:28:43 -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=1515106081; x=1546642081; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=TbvaQW8sxsqut5GttMjDQwqJeu1mLOiiy6sLICvrouw=; b=E0bOBOpfxxGGblGX/M2jEltWTmfDZ1Wu3lNF6K2zzTF+KkbXDTxNJr6F zXFpYxq9aHtRu7UOJSFJwpv12rd+qMFjFcQ3oCliOEr9x1tYSxTjOlkhp Z9aHWTypzDJxxEYAaOPgLGKzBGBc9nE1iHT/7NAEaiQeXUnMjV0rmZ9sJ tHJ4T1U4bKgoyOfl6TXWeqgUyyCiUntqOAoppSxSKDA8KcQHWnOcyeO39 lIsne2Vh2rWc4J5HHNoBpb00R1qMNCi2aDa4q1h0aRpistrgTPPzrbRIl Z/s1pKIEPuhleWGfzeg2a4Po9SQev6nHAms8fFGnaA+Y892nPt8vMG2kH Q==; X-IronPort-AV: E=Sophos;i="5.46,315,1511798400"; d="scan'208";a="164140725" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 05 Jan 2018 06:48:01 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 04 Jan 2018 14:24:28 -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; 04 Jan 2018 14:28:43 -0800 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH, resend 2/4] IB/srp: Make the path record query error message more informative Date: Thu, 4 Jan 2018 14:28:40 -0800 Message-Id: <20180104222842.26756-3-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180104222842.26756-1-bart.vanassche@wdc.com> References: <20180104222842.26756-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);