Received: by 10.192.165.148 with SMTP id m20csp318540imm; Thu, 19 Apr 2018 22:45:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx494S8Q4mCEG6kkTC6p3aB15uZdJG+pkX/tTi7sFeoqLVyqVzlO20WEKGTKHAoe8o3BCem5j X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr8669884plt.374.1524203133683; Thu, 19 Apr 2018 22:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524203133; cv=none; d=google.com; s=arc-20160816; b=TFd0rp2JPeszVbAvUZow2f28CnUvyO+14nS6CRcGbEMV6CljK/cwMtzKSMdrJdYR0U LuPyNHV3t2Y9C5bAouoFfTLteJ2vPipuMRZbIukyhHebQnqMsLQP7JID/UkKjItpohp7 r76gKvIP+d6XuSQgGvlnc+Lr68sL9kddfZ/KHZKb8gdj7tarqPwNsD8socw0SanuS+x8 +jW+WJTUg5OyounMxnCIGBBhQYrQvHWjo+Z6/UDfokXvH973yygB9uwRHAlT/klf5DLV 1eOnCrqEYC3dMWRCWBNv+w1ul1ZaoYqnXrBapQCVt6eV80OgVEv471gawHS/JjAi2xYh bhUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=eUrpsrzNIcp0jImTThCT4SnSTJZVSrxLfCMgutHcH9E=; b=E2i1Agl6JyCIO9IZ4+ZBgKrPOjLG7CGXCgFRDNKRGi2DaczEXioGR2J8DFooWDpt62 au5i8LYIjdD4fbPOy9wrmIndS90+/0jXzPKpFQgGq9tUB8LDht08/3jJFTKuXODp5W+8 TwtK2lF/4uIIuPTYNOfrENFcb1p8WWLR2j2DgX5lygtYum8lCqYeZCdt4GAuPnPhp+qj METhhqLN7OL4e51xCW3VVQd9LMx3GKHQYjGqmNUdHZ14JtUd9h97tbHlWnlXWz2M05ge 3sPIO1apIjwV/K4qMKRqEk/7xTrj54jCEFqoxFcrwLfG1a6alnZ8FOQUEtcMP/Z1gEYs puWA== 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 w71si4822854pfd.273.2018.04.19.22.45.19; Thu, 19 Apr 2018 22:45:33 -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 S1753551AbeDTFnE (ORCPT + 99 others); Fri, 20 Apr 2018 01:43:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:38597 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbeDTFnD (ORCPT ); Fri, 20 Apr 2018 01:43:03 -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 0A437AC29; Fri, 20 Apr 2018 05:43:02 +0000 (UTC) Subject: Re: [PATCH] nvme: fc: provide a descriptive error To: Johannes Thumshirn , Keith Busch Cc: James Smart , Linux NVMe Mailinglist , Linux Kernel Mailinglist , Sagi Grimberg , Christoph Hellwig References: <20180419174342.27307-1-jthumshirn@suse.de> From: Hannes Reinecke Organization: SUSE Linux GmbH Message-ID: <500112aa-ea97-2428-ac39-854329a52e93@suse.de> Date: Fri, 20 Apr 2018 07:43:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180419174342.27307-1-jthumshirn@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/19/2018 07:43 PM, Johannes Thumshirn wrote: > 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 because of a typo in a > customer demo today, so yes things like this happen until 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); > } > > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)