From patchwork Tue Jan 16 18:39:43 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: 10167915 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 BCCAB601E7 for ; Tue, 16 Jan 2018 18:39:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B167626CFC for ; Tue, 16 Jan 2018 18:39:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5F3426E3A; Tue, 16 Jan 2018 18:39:52 +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 4B0F026CFC for ; Tue, 16 Jan 2018 18:39:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751182AbeAPSjt (ORCPT ); Tue, 16 Jan 2018 13:39:49 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:44626 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846AbeAPSjr (ORCPT ); Tue, 16 Jan 2018 13:39:47 -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=1516127988; x=1547663988; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=TbvaQW8sxsqut5GttMjDQwqJeu1mLOiiy6sLICvrouw=; b=eO/NzrFQcZDgUWJ1pBXVQdk8qhjrpuipQDBVEkt4s0vC+wuFKuf78RrI cKASMTnihfFeX6ZrLIICTaHPzqa14qUwG1qj3pVzMrmPUNa5BvpQ9iuVu krGBoApGomxg28z4Huv1uYzW7ogwW46KS3QtyuBQh1OV+VD2+PVCcQyow DVhyRj3kyl13yc24ENJotIh0zNyvIaUGyprSr4Zu8Y5YEtixt+fbbZ45G XU1hCABPIYbK4q29+iE5F05ZqqKdQMfwd7EM0y3UmTIts/MS/o6Hpx6C8 GCeTBsPxp6qXmXtSBw4KI657lIvhWKIl8jvoacZTDStRJ5jWu24m5ZbJT g==; X-IronPort-AV: E=Sophos;i="5.46,369,1511798400"; d="scan'208";a="69654787" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 17 Jan 2018 02:39:47 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 16 Jan 2018 10:35:29 -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; 16 Jan 2018 10:39:47 -0800 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , Greg Kroah-Hartman , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH v4 3/5] IB/srp: Make the path record query error message more informative Date: Tue, 16 Jan 2018 10:39:43 -0800 Message-Id: <20180116183945.30629-4-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180116183945.30629-1-bart.vanassche@wdc.com> References: <20180116183945.30629-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);