Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp836227lqp; Sun, 14 Apr 2024 01:35:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYdWCbY1LOBtxnl1r21T8XA7Oi+Wigxc7f6n/7V+HzMeWEf9WAIjlFDvBUf/bcUuT3XV9fTD6m0mlvYdFZJQkNG4gpRAzFtPe4jxCpGg== X-Google-Smtp-Source: AGHT+IGDxBZMWuCuoa2UxsGBahvc2VVnKOIDONc1had0bGkOS2AbwvlJrsC0DsA8PocwDCpvHD1j X-Received: by 2002:a05:6870:5e13:b0:21e:7751:312c with SMTP id nd19-20020a0568705e1300b0021e7751312cmr8761165oac.30.1713083713546; Sun, 14 Apr 2024 01:35:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713083713; cv=pass; d=google.com; s=arc-20160816; b=yBbD1aKWp5Gy6JHhqae7qQReYKM8zItJYD0MivWppwl4dbDzw2KdjC3I8nDU9GpNmi Vix8SjdMMP6ph7IfDgWTymi4qQSVJXyLN7zXzwaOm2CCeLAZjsXOL3QU2iUCIipW2tPs pD9DTGs+PeB3qppPQ3CM5FqwpL0dLxExOY0B+qSaX6THuuiNgHuqsf4bZkA2x0pVNBRB bNULWLm4E2GfZj6tmWPotB7n/mQr/66Obht5u0lLJ/SB1EaQcctK9GLb1jP0WzsNAt+e zOIT3fyb9kfGHauF2LzJei705BqbpbWkmDWMosYY/pr2ngkdqJwnXgWiB0TEXWmgxcD4 9MtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=rODNJ0Ukhp6xqvTSkV55aTTmI0Z+BHUMDDSzoazWTg4=; fh=Rbqx8s+1M8k8QgVxbq0o5dJ/sB7dm67wVJJZF0ABylE=; b=0DSisSKcFeoengVXiC3hOG99CVUYpHFuxWSAW8qc3fizz14AI7QZIwt8TqaWsjvWMx 5fDpJYe1BVfrJUjbWhLka2Bl0/fvdO40hvP2rh22NQOkaS8Udg57T6CbLSmkvMSLW2BM gxkIhAS2MJT0kIFkeSvNs/bsqoVmWCW4n4imW9zn7gbGrlarnCDtfZHwZpLgCWewVpek bYR66WIp4dLm/NQ/ct+iyMRhqUMl56YVDMrbWdhP85g8wZf2F8EzYz1KKlWii6s5dnCw /Z0XdITTiJo/+p8ojnhiYxHx20JfDdBAuCLgWIJSaSJNki/AuCoS39Ydqv3sAjrWIjNd Jbfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-144050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144050-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p49-20020a056a0026f100b006ed633b9110si6214182pfw.26.2024.04.14.01.35.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 01:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-144050-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144050-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 87A62B21047 for ; Sun, 14 Apr 2024 08:35:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 070EF224F2; Sun, 14 Apr 2024 08:35:04 +0000 (UTC) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB4C4219F3 for ; Sun, 14 Apr 2024 08:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713083703; cv=none; b=ZogDvrz/Kwy8RDv1XuMvoNdsDIbZzxwxoL5lpOYUasRYfGKcMBg28/vtgvSlkScV2PE1n6GZPVD/Ms5Yn83l0tDBZzJDPLK6EuW7iPq72MTIpUlKY8ZOwnQz5P8imsVTqQVybBCNZYyNxkrEw7zVU3cbpYz4o6+HSoLkuA8+dHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713083703; c=relaxed/simple; bh=rODNJ0Ukhp6xqvTSkV55aTTmI0Z+BHUMDDSzoazWTg4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g0Zk86DU/KNROPvCMO6nLJ8TAvQP9WX0V4NXBQWPR/7F4B3APrQwhMjW/7y5wknXTMyNkfxCw4YeDpBpMobw63M4wbmtWDnjacRGz62qcuTv7JV/DuBmPQlOdUS+sDEaXdZypVPtBThfA5mvoNitcDJK7+jPea3vn3Kvo2Svmrw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=grimberg.me; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=grimberg.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-516d8764656so831125e87.1 for ; Sun, 14 Apr 2024 01:35:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713083700; x=1713688500; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rODNJ0Ukhp6xqvTSkV55aTTmI0Z+BHUMDDSzoazWTg4=; b=fzU3hQ1OHNDuXvkgZt6N5Gh2L79nQ2jfjGA54FFeAUAAIIOQ1IIJW19vpBFfHt7xPG 3HtE6HJrKbxCzE7KNeGpQDhkqOfNRYecRjcnrrJte51HogxLev+F4nhG518ecefDp/Uv NB1ZJ/+cU5t8gcDy91YKgFIKvR5oGZ5e9M2HADFZ9R/7nSnH/QKeuP5G8RN0DUACnvrp JdC9KQBnJ8MkQVYbBdeiHXDKpeQ0QmTml1KxOFjzoWQLI7vx86WmxzOFBwZ3m06l3NnQ uvdBdINdFjeKG0fywO0a4IiIIbWDJRTtZ9Wd7CkfpD9h15eHstl10uclaY1zliDWMF45 9SBg== X-Forwarded-Encrypted: i=1; AJvYcCVmYbV+n/5/x2skgFrDu/CNQgJbQItIizxnoqd39QRVQ7X9MVh4LtGtXNy6Bs+7YvwHSHQseGCDyfJ4ynUSyi4euFPwDjZaqxUZ1q6E X-Gm-Message-State: AOJu0Yy62B68DG7YtcVKHPl2ltjS8n00O/dSldPfHBNnDhPY50KT6QoX miZyYYvKYHEm6rLnDlVHR+AvkzbyteOxaEXIACoFbl5J9VIdm+MuVHRnwA== X-Received: by 2002:a2e:3a18:0:b0:2d4:25c5:df1e with SMTP id h24-20020a2e3a18000000b002d425c5df1emr3891400lja.5.1713083699832; Sun, 14 Apr 2024 01:34:59 -0700 (PDT) Received: from [10.100.102.74] (85.65.192.64.dynamic.barak-online.net. [85.65.192.64]) by smtp.gmail.com with ESMTPSA id gw7-20020a05600c850700b004146e58cc35sm14861616wmb.46.2024.04.14.01.34.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Apr 2024 01:34:59 -0700 (PDT) Message-ID: Date: Sun, 14 Apr 2024 11:34:58 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/6] nvme-fabrics: short-circuit connect retries To: Keith Busch , Daniel Wagner Cc: Christoph Hellwig , James Smart , Hannes Reinecke , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240409093510.12321-1-dwagner@suse.de> Content-Language: he-IL, en-US From: Sagi Grimberg In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/04/2024 18:24, Keith Busch wrote: > 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. I think that what we want is to have a special handling in the very specific connect failure when the host/ctrl credentials mismatch, because out of all the reasons to a connection failure, this _could_ be transient.