From patchwork Mon Jan 8 18:55:47 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: 10150325 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 17829602CA for ; Mon, 8 Jan 2018 18:55:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 236E91FF82 for ; Mon, 8 Jan 2018 18:55:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 171A9201CB; Mon, 8 Jan 2018 18:55:55 +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 B9BD11FF82 for ; Mon, 8 Jan 2018 18:55:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756075AbeAHSzw (ORCPT ); Mon, 8 Jan 2018 13:55:52 -0500 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:28884 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755689AbeAHSzv (ORCPT ); Mon, 8 Jan 2018 13:55:51 -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=1515437752; x=1546973752; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=TbvaQW8sxsqut5GttMjDQwqJeu1mLOiiy6sLICvrouw=; b=nk+Zr9hJGzn2lUrStEiO8nrsdMmaX/UcTx2X6W4y9tPBx+/r8vmVaSzV E2uP4WhnKPzngZxx0MVTiq6LmrRPIWHCnhNxuW5jXlbkf1L5vWPkJJje4 0HjnlUsBNST3jna1Tg1JLDKOhYX437Vmn+w/jjd3sOILXYAJ6kOh4sd+/ 98hbKueIDppGNzPWvEBiZ5++nmU+lGgy6itgpAkdRffbSZMj+BrvzvB+u +GsrRmA8XYOvB7YbcobGT+ncw7nxR2pyMImSMGLHJbHDjOOzuozt/aunh FcDfiqht711Wj5g6OaWdHTU9zotdP/lW3XIiwwmBzQ2zAtFFfwo1UCoxZ w==; X-IronPort-AV: E=Sophos;i="5.46,332,1511798400"; d="scan'208";a="68270497" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 09 Jan 2018 02:55:51 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 08 Jan 2018 10:51:25 -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 10:55:51 -0800 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH v2 2/4] IB/srp: Make the path record query error message more informative Date: Mon, 8 Jan 2018 10:55:47 -0800 Message-Id: <20180108185549.30377-3-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180108185549.30377-1-bart.vanassche@wdc.com> References: <20180108185549.30377-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);