Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp219513lql; Fri, 12 Apr 2024 08:25:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7tC61OuIh1PHTiJS6SSAL1rGLRjoiRP3y50mZXSg8IYXj1FAvxf/Xzy9DeU5uyMPEyvABeUFHCu4iQU/JkfKLnq/+c7WOFQYPlTT0gg== X-Google-Smtp-Source: AGHT+IGGFUBVsM8ExaX7vKdjud+LpKdrawLydqAePT3ssT/VazScZ++cUCzD8axEXqH6ZeRJXiXL X-Received: by 2002:a17:90b:3548:b0:2a5:2b3e:3b2e with SMTP id lt8-20020a17090b354800b002a52b3e3b2emr2577830pjb.30.1712935501939; Fri, 12 Apr 2024 08:25:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712935501; cv=pass; d=google.com; s=arc-20160816; b=b5DgelzU9anAMaLnRCAo1T8MSG9U55dQAoZ/Y73BpdSO4yljjOpZBWy8RU+Svt3cDg rj8KOHMMcgd1CRF8mbjLYAlifnIcrsG1X1uYZgsORhQdLeanLsJIaydvMipcryOSbbni wyrXJJH4jYs7cxe4qlrvQPx0tiJWCgUQv9+sxe7qTya3Suhk+7RziRdqQQ1kUPQWFyBL h9TxMX8D91aKN80KeegDEcf4gwp5mb4usqLhEeugFb7cfRenhSOoeuXkdRxDPTZwOzY3 kidEHt4Nk+UwTTlzT5rOrsRKJSfWCUz0WJcdMBMKnOrPjIrIAv1M0Rl4qtcscX8pwRtJ SP7Q== 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=Jkgbyu8KXQDKdXtSlYSiH21++HTJoaEl4z1b0zvQEf8=; fh=c0N63aRhQcvSqP7nWFBSWU1OVcDuksQYSBz1/Ns08QA=; b=m8X6+gHLcNU5Fv976OVnf5ioSCV+jJnlLaJsizUxVrJ5ksHS0Zs6JUH3QTGfsw0Obp BQ4JOJGZdeufOX/Uu2EnEzhUsKz13HWmtJHeGRxb36hDZndKNWLeh55+69vANJ0NFUUx lftVygUfFf60F6x/LATZCiryy1Zri9lhWLW4Pr2fLm7wVuxRuGyMK0cgewKFeXzYlbsW Euavh1gpgGhqcQKPTRmhss65lCNTVOV33H6mzydvaUPa0KDW61wMIjZPiOcC5+TX8i3X Stg6tI4UEOG08JYDL2ZiKuAwbXNKaw1KjoWAwtvXwlB52jQv7O6h/ACRnd6XY1Vzt4a/ 6XZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YAAGYBOz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i11-20020a63e44b000000b005f07f356d1asi3282865pgk.716.2024.04.12.08.25.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:25:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YAAGYBOz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142943-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142943-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D3CF28416A for ; Fri, 12 Apr 2024 15:25:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A9255914E; Fri, 12 Apr 2024 15:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YAAGYBOz" 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 322F6148302 for ; Fri, 12 Apr 2024 15:24:24 +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=1712935465; cv=none; b=fJ6U94lBssWOLnEnWLubSX2FIgc7ZH7lNiOoNnTIflhCQJGiUeiGtxUPORxNPM6i0v8awrfGYxWPRWIWbO63lvF5PifVssmf8A1wpEQo/f19ZWIdcfHrmcLEBonCkuIwUwnkC/7SKcXZQS8Fs1erjWFzsBlxYVct58r0CQ7zGAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712935465; c=relaxed/simple; bh=NWBY8Xi/7G/iirnu6Mw/60mc/htaj8sawp6gS840vPY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UjjKT0DcAzdgq2ae2hIprnSbzwsMZdaI/q7Jc/rdraeS03bDVJEmr+y8HmvomU7b6NfWGWvuNQt46qqqwa/jlCal2Vmzs/WNJkA8eTJILujq3ouaDS55fg8PnDhISnXo4pi9Dv0gHWsuaUJDc8tXsL/skNRtjKU2Tfg0xrgAmkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YAAGYBOz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F00FC113CC; Fri, 12 Apr 2024 15:24:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712935464; bh=NWBY8Xi/7G/iirnu6Mw/60mc/htaj8sawp6gS840vPY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YAAGYBOzdEXGRplTCs5I+PgkflKoKKlmPBnvU9lVSUfUE31pbyih/p7afOnx6J3GH QPnR3F8HUQfYkFkm4qhuOeik7iKmMgvmbv+7nw+f/QqRw7y8drkpnDJ69BzWcVCMX8 UraR/WHIhXHNlw78hjYWuAjKY+mgyoi92PdTgTPFzy00NvstKA35hssc8a1ATL2HCI KgyTSHfJDXXWxsRqwzv0FmfarI+RcZMAe1sMh489j/3798frVVnzfVHJABrj++kMN3 7a+DMWx0/nktukVA6zPrMnKlW6wwXLNScH3OVjBr1+VnjktAad9kbxLuwsQ5Ta8J0B hlHaa0DTyW2Ug== Date: Fri, 12 Apr 2024 09:24:21 -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: On Fri, Apr 12, 2024 at 09:24:04AM +0200, Daniel Wagner wrote: > On Thu, Apr 11, 2024 at 06:35:25PM -0600, Keith Busch wrote: > > 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. > > Thanks! I have an updated version here which addresses some of Sagi's > feedback, e.g. using only one helper function. Sorry I didn't send out > it earlier, I got a bit side tracked in testing because of the 'funky' > results with RDMA. > > Do you want me to send a complete fresh series or patches on top of this > series? I'm fine either way. Oh sorry, I didn't notice the discussion carried on after the "review" tag. Please send me the update, I'll force push.