Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp146109lqn; Thu, 11 Apr 2024 17:35:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtzQFvBERtkSAuy8NtjJfPj9+XcaqukGkBdVhmr0czbg+B1STpEYKJHax+SrPzJet64ifvJEudWs+sm28omMRPWTAzE9eFjJuBH+20vg== X-Google-Smtp-Source: AGHT+IGXYOmkg385hzGuIT7TjCSE2QR6QS50H7GnpqB9tKdbtL9gtkbR9RMSpV77+gbb8kC+kCJZ X-Received: by 2002:a50:d557:0:b0:56e:2a6a:8d3a with SMTP id f23-20020a50d557000000b0056e2a6a8d3amr1042125edj.15.1712882136231; Thu, 11 Apr 2024 17:35:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712882136; cv=pass; d=google.com; s=arc-20160816; b=LcsXoLANcg3QjLiBmcAyYezbt/RKhfuxeaXZbe5xo0WXpryeEvPLq0OWL6Ta9Y9gnH ftz+m9JupfWDkGZ6HPhyYQ9fuxFAOcb+cehkiRKoGnRqa+6XbfJRRHfrvZws1nKTTjWc SYFtJ3g7APG5Kr2JNFbfn4hRF09uVNUyK6NG/fxZ1ZVqJzq5Ck53E12D2WzTBlhyderb F7Geq+nN5nkUidXDdgGvKJleqez+ErfGGrUGHpbsR8B5GqxNwNYg/q0vaJ6Ju9fuGuxg mA4113GF10r/L8Lsf5snxn2owSkfbXwhuVpGHyobeeh8WInctqNH7gRKcHPGq1Z4xtrN Lzog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pJYlG2d7mNQ6RgImOKsE+1PKFs7Su2lKgouYn8rxupQ=; fh=c0N63aRhQcvSqP7nWFBSWU1OVcDuksQYSBz1/Ns08QA=; b=nQcFd4xptQcnp3ycIGxA2tgnMUCUeDVywRFlGg09sk0eMNQeeEvL2Fc8+b/7GJx5Ky pOTPtuwBoBa0PWC5hcEvjw6H+lRCaw64FinrouqTYK9ZMOU54oJrSK588TfeEih/+61R XGPjUf5c27lztY/dXeqD6kgBI1BFueEVymTk9FQl4krjQ3upZlO9y5054nwhAfL8DFdV CCMk/g/MM+xj9r8G80z6bzxFbIfuAxakUn2aJX9SIDS2JEaahdSsVJNXN36agjVygg8t FeTtvnj0/HRKeW5NK9YETjbfd1fg+LTAksQySKzBOuvepQK6/0ozKnKWLHHWgcJzFuOS 5B3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SYIhgFQI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-141755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y92-20020a50bb65000000b0056e22c09d62si1166968ede.260.2024.04.11.17.35.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 17:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SYIhgFQI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-141755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EE62D1F22C5B for ; Fri, 12 Apr 2024 00:35:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA0E9211C; Fri, 12 Apr 2024 00:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SYIhgFQI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F249A17E9 for ; Fri, 12 Apr 2024 00:35:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712882129; cv=none; b=JNZUf2plqOfhT8VQ2C+tMgUOEsDrotKwXyKMpApYm54J+m2hdVgO8uhCHhN/DSRxYwaEuhWnYf826CdqlJcOH53+pmocbUIF9lwbVIsLo1GSIjC8aDOYLvqleG95FyRTqsR4u3z485tJlJyGt5aKPiCpdXo+Of+J6bIh38olKcQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712882129; c=relaxed/simple; bh=Zd0UnFAEVBYqLc+J6a48EFFUgrWUs/hzCkKQ2PDZS2k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IqLZSAy94wuXPtpysOxfKttlt4o+XvGyAedaEtnXVArVk+Jo2OhtCm0+7MolgvL29iLZMXHWS0yvcqcY+6bVqg/LZ2cCF2SA9NQ4PE3Pr/sTBhqgPcF5q6DQ+XM/6ybGYe8GPYaQa27uoqVARypzUMEvaQ14XlFQDZF1Q65a6sc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SYIhgFQI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14897C072AA; Fri, 12 Apr 2024 00:35:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712882128; bh=Zd0UnFAEVBYqLc+J6a48EFFUgrWUs/hzCkKQ2PDZS2k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SYIhgFQIiT4iU75zL3wCYTbWNWJ/nSFuIdTCPwelmcdDqb+wV5nzItJAoy2tC0M2T 66atD6/HhXNVH47sP29ioke+bUdnd6piQqIZMA5G5LxA6VaJ6xjxq8k/Pb+PR2b7bI ptVq2tMkZiURcQA3QKMeXnO1bQ535zAilkMduhbwffK7KaZM05XEnFBKlx+2sx0eXc I4KukZFIuNi5BQn8phHt2clbN6hKs9jPyO5AsfenqsVBsTz93A7q6PgJvbk9i8O6uJ Pfr3cS2+vgh5NVqQQHG5Dnt7pP2dT1xl+BSYN/Ibzj/z6XX5yL9jI1dnfQZN6arLwd 9F2Wym3OmgHQA== Date: Thu, 11 Apr 2024 18:35:25 -0600 From: Keith Busch To: Daniel Wagner Cc: Christoph Hellwig , Sagi Grimberg , James Smart , Hannes Reinecke , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/6] nvme-fabrics: short-circuit connect retries Message-ID: References: <20240409093510.12321-1-dwagner@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240409093510.12321-1-dwagner@suse.de> On Tue, Apr 09, 2024 at 11:35:04AM +0200, Daniel Wagner wrote: > The first patch returns only kernel error codes now and avoids overwriting error > codes later. Thje newly introduced helper for deciding if a reconnect should be > attempted is the only place where we have the logic (and documentation). > > On the target side I've separate the nvme status from the dhchap status handling > which made it a bit clearer. I was tempted to refactor the code in > nvmet_execute_auth_send to avoid hitting the 80 chars limit but didn't came up > with something nice yet. So let's keep this change at a minimum before any > refactoring attempts. > > I've tested with blktests and also an real hardware for nvme-fc. Thanks, series applied to nvme-6.9.