Received: by 10.192.165.156 with SMTP id m28csp985079imm; Thu, 19 Apr 2018 10:45:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx483gRogJDSIfg/VLUikLo2A70U8SagSL9to9CUgmLsfBgw90ngnE2oIKkmkkDOAsI4Pn46H X-Received: by 10.99.124.15 with SMTP id x15mr6023928pgc.308.1524159929885; Thu, 19 Apr 2018 10:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524159929; cv=none; d=google.com; s=arc-20160816; b=GzMmnJXcmTgDimYDfbrbNiE6XTO+0yS3ps45dgZvzLtKaWjTVw7B9YZOg7oWXGbgcQ YSMBz0GzuAhhZGBHzXhQZ0+TZI9xqWUUdo4dQhHZbE4iDW8l/DwNWTncgiXwIhs85N0I fTdZ9hzh8kl2lv45fb9TnfKlKHfu7TFz/oC1DP0oW71YvSE7HUNE6HRI1QyXyoVl7Ppg XVe6QoSs0AyRxW2Ulfa3fZRwHxi2E71mlkFLfbqmZND1faNGMMTk5oOMnq53ZdHTeUS7 vrSrq/W0ne5PpURq6Rj4jYq3hSSp1T2OLGlBmqQ+6tWbxp48r9OPUJt+fvcR9bBbNFdD zr6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=w5LLZIdLITTjxNYQLJEWM7qYzsjXruPZ3s+GEboHjEY=; b=vfMrND9/aCotm+sMk3CvRtk/BjvvhbCoapXY0c58n8CDaI5UIi6fbk/zrbVa2csKjr Ich7fUiXkkgIucC2fS2GrpnKQY9zZ87ecsNNtZ3kgdlKlRdGRiPThlRzQUddGMAuGbb6 wFSTMRGN586SoccKVB2pR4eDpVDfjjadc/zfk4RnHkA9owN1fH5BCH1MGfeH5xtOAZ4p t1NHe/o71mQw1dJ5A/diFdGnTgE/iOsUQtTsMB2FF3bgy1ixYEnpnK8dMWar3ZLgHFpS 9zAFYPR+vB8FOkFWeS7xHS7ugUF9y9Uu5ZPRg/Orzb78GT3b8lENYnT6boCS5lF5kou5 zbag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si3906344pln.533.2018.04.19.10.45.14; Thu, 19 Apr 2018 10:45:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbeDSRnw (ORCPT + 99 others); Thu, 19 Apr 2018 13:43:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:59747 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753299AbeDSRnv (ORCPT ); Thu, 19 Apr 2018 13:43:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 54E24AC19; Thu, 19 Apr 2018 17:43:49 +0000 (UTC) From: Johannes Thumshirn To: Keith Busch Cc: James Smart , Linux NVMe Mailinglist , Linux Kernel Mailinglist , Sagi Grimberg , Christoph Hellwig , Hannes Reinecke , Johannes Thumshirn Subject: [PATCH] nvme: fc: provide a descriptive error Date: Thu, 19 Apr 2018 19:43:42 +0200 Message-Id: <20180419174342.27307-1-jthumshirn@suse.de> X-Mailer: git-send-email 2.16.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Provide a descriptive error in case an lport to rport association isn't found when creating the FC-NVME controller. Currently it's very hard to debug the reason for a failed connect attempt without a look at the source. Signed-off-by: Johannes Thumshirn --- This actually happened to Hannes and me becuase of a typo in a customer demo today, so yes things like this happen unitl we have a proper way to do auto-connect. --- drivers/nvme/host/fc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 6cb26bcf6ec0..8b66879b4ebf 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -3284,6 +3284,8 @@ nvme_fc_create_ctrl(struct device *dev, struct nvmf_ctrl_options *opts) } spin_unlock_irqrestore(&nvme_fc_lock, flags); + pr_warn("%s: %s - %s combination not found\n", + __func__, opts->traddr, opts->host_traddr); return ERR_PTR(-ENOENT); } -- 2.16.3