Received: by 10.192.165.148 with SMTP id m20csp125809imm; Thu, 19 Apr 2018 14:22:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx489u4XEdrQFqf/4UVbojR0rdchNelxEwZ+qDAyc3E204cLrm/w324eqZRKiCtlLgNwze9Et X-Received: by 10.101.99.6 with SMTP id g6mr6344223pgv.173.1524172925575; Thu, 19 Apr 2018 14:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524172925; cv=none; d=google.com; s=arc-20160816; b=wApWiQs/F+p1xbJuZRcNoeEuJm+E03w9Vg2nW7jBtMbr0rNdto0zzSlsCS+DUMF58A nTR4zBHBAJNG4cs58lc9KIlqvpszLsNci6d1Oudwou41EgHIl0APCSE3jTWqYcbeXSnF ENrIGWCtE1pofGO7mV0alKerJQUPBMewQmGKPz9CFd0fKlAstOHNqLrGViXYCvd5pK+P NCmCZfXBtAQthP4kOLIzePwnumd1BIa7GpW1hyKRG0mv2b5pL7JKjkfF2VZgsMuj/dU7 yZx6B5YAcVhk8zgQzNPVzzVSa2gP/oZ6acatAYlToKwqU8m4/mEKns3wTQjnAFtEQ41p 0TjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=MKA7z0yswlrQ0irNG/D+ddp4VcXaleaIBdaqWA/W3fY=; b=guPFRpMRBB40O0Ps6pGfimxJCsQhw6sdkSNipf2b8Ou6bCjdifAJymBVQLcXryEk5j 5dwd4WcbqCAlLk6YBwetnDcoacgw5lmjlEsB/8+Xfo3FtWSfX+L+qOrR/z9UD3iVU7AH dkCM2lXQAq+EzSBb67JiZhdqIdXVNc4DXa1D8/Z4K6C4DU96piy5/Wa0Wfs7MxCMPY50 aR6ehAA3aCl8J8rEzAWDowfEGDYqDPJdx3eagyDPXjo3aziAGyHNXN45YTDGcOGTpcjy tuA4OQ3KJPQpyDPp+AhOOtGRY70ffNX71tpGRzojTtQ6MsJFxjLaie0C1pOw33OB3bQZ F9QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=N4cslHlO; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si801610pgv.596.2018.04.19.14.21.50; Thu, 19 Apr 2018 14:22:05 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=N4cslHlO; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbeDSVUr (ORCPT + 99 others); Thu, 19 Apr 2018 17:20:47 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:45392 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752725AbeDSVUq (ORCPT ); Thu, 19 Apr 2018 17:20:46 -0400 Received: by mail-qk0-f194.google.com with SMTP id c136so6847756qkb.12 for ; Thu, 19 Apr 2018 14:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=MKA7z0yswlrQ0irNG/D+ddp4VcXaleaIBdaqWA/W3fY=; b=N4cslHlOqx9AkxRvGcVXwTGCJ9/IkUD3CRMBVpguzWjB/EExtJAnoYc85/TUSi+YYp 8fo/tNP5UsFuqjySkUf2h+moAn5oVpBibL5PUEaT1Q1TzD6KUMIEyNHDzEZvfUs9+DFI 89W8WFo+dWO4s46sX/AmPmAHrjTishFEERQuk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=MKA7z0yswlrQ0irNG/D+ddp4VcXaleaIBdaqWA/W3fY=; b=CJZ3DT3p/dTEzvPFrwIhc3gyiIfCxaVCycaL2XAIyAa/QGp/DFVCSVL1Kg2iQGgc8n KJ5J9HrlHQnc/g5+MWibljK6vZVe/ugVijAiAXHQZPwW85IfMjNwTHbbYBkp34jf+Dhq nEQwPw+FQKoGdJmUEo3gE4ta3Xi0AsmtDWrCOKyNP0I5JMcexdtIuAt6IPRD5FekGXjW tKDTbWN0Nw9ERWOfV/JSeuEVujKH8PfaMwA8rdUFI15KFmehcBn2D0XmKae+SyHuW9h8 wcwmtS4+NSwf9SYRzRv6o8H8cfFdeJqpxR2HmC3AD/n6x4bo+aMRcYmEr8TSFHjn5cgX MqtQ== X-Gm-Message-State: ALQs6tCvyoWsGryObKF7wlY/WMMx7j623w811p+r56968qpfQfQZJT0b 1MUIzKX9tZzi/djVg7AHn488OtHdCjM= X-Received: by 10.55.181.2 with SMTP id e2mr6443252qkf.12.1524172845966; Thu, 19 Apr 2018 14:20:45 -0700 (PDT) Received: from [10.75.248.248] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id b127sm3340659qkf.76.2018.04.19.14.20.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 14:20:45 -0700 (PDT) Subject: Re: [PATCH] nvme: fc: provide a descriptive error To: Johannes Thumshirn , Keith Busch Cc: Linux NVMe Mailinglist , Linux Kernel Mailinglist , Sagi Grimberg , Christoph Hellwig , Hannes Reinecke References: <20180419174342.27307-1-jthumshirn@suse.de> From: James Smart Message-ID: <6341b630-ce66-90b5-bd80-cc2dcd2cfb71@broadcom.com> Date: Thu, 19 Apr 2018 14:20:43 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180419174342.27307-1-jthumshirn@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/19/2018 10:43 AM, 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 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); > } > Signed-off-by:  James Smart