Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp468736lqi; Thu, 7 Mar 2024 02:40:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCViWvXq5EunfR/s4jIlYNoqArOC2UPNV7CMZhxiVzaRlts6ePfVWDzDJVNrwShHo782kF6NXZDF7LxIbsGmU8TJVvaP4h8IJztDgQsc3Q== X-Google-Smtp-Source: AGHT+IHOmCMR4MN0tMUK/0pRMyMuqxCJxoYI8Vc9BdiHzBWghEt7wi3rtvygWtN3CdjVRydPfkyZ X-Received: by 2002:a17:902:ee91:b0:1dd:22ec:7b22 with SMTP id a17-20020a170902ee9100b001dd22ec7b22mr7344819pld.33.1709808053890; Thu, 07 Mar 2024 02:40:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709808053; cv=pass; d=google.com; s=arc-20160816; b=0TqT44Lm0A5GdVmiyEXkfP32+BXxK4K7MSQkfBMztUY18UOzBtVPyMdxY+DW5mbvK0 TFlhB1V5jwesKT+5VScpJ3wMSkanzrDN/QFasUTUfeR+ynADpBfRX3X8bL8UBGqLfuek Y+MVFXXki3Lo/UcYi+UXJ0enGoLohvN0ntcQqsbpcLfYfQbso/5w1w1ubR+yTRmQQEh6 kAHLOb9hHonDXRSFCdYcap+Slbsr7KaiursECXabqQhI/Kctsf6hEo357v3kMg/i67Ps xttj8AtmacZRfZuP8Loaqp5wRftSan3Oh+wo7csE5f1uHjkiWt83X7xqR+6X3GruXgWk 89jw== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=G5SEuU829SBeN9Z+FExisYI5Ruv+jv1Pb0lU4z6MqnQ=; fh=nq+KQyDFBDPz1HFP5JmZk9XnklrE60gLkoTg4LjQ7k0=; b=yUid85/325FxDzg6RUoMUYQyBBSYOljaA0lSKV/M2Y+aF3DpDWKDSt6SfTgxefoQHg xhtKUM+mhrMYPML/JQ8XkI7sRTDVN0vA7vnAXxkZFsoOIl7xM+2HhtGSDPZZuxnkT4Kd cGvkG8kfX+en4jtqk7P61U9bYXSybdrhCcUkRIbYosIQBcPa5bbLCLNn/IIcaheh0q6U 9BnsIAEAXrCKpf0mY9AuPLR++RLveUSnb/UCXBWKosOOH4v8dkEeFwHrYXJBrkAuUuF/ Y2Yx+RJOai5sKP3IUajIEPuakj49huJO2Ox0SUUGZeHdEheESCubHtRbPWobMAhmFH3B Y08g==; 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-95339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95339-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 b18-20020a170903229200b001db6ae778adsi13860662plh.483.2024.03.07.02.40.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:40:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95339-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-95339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95339-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 60A1FB22D42 for ; Thu, 7 Mar 2024 10:34:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 432FD1292F1; Thu, 7 Mar 2024 10:33:15 +0000 (UTC) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.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 3DA278562E for ; Thu, 7 Mar 2024 10:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709807594; cv=none; b=TVNozemUtYuBlZVklZR5S8Htr7qcdyYwQWi4ybeoPJGorM8iPlOVZCrcnO0XKd83KdMzXnYedAmKhb0UA802ayhGB1OzIkiPfvCetrbxJPiFztgPXooMtNwckH3Z2NB8d9ZUSMHej+byVmVR7XYkOQ9CGiLDZ+Zcy+/pXgF54zI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709807594; c=relaxed/simple; bh=NoH8jKuzyRK03BSBc8hA7b8UHGaVjN7/4d3TBjyC6iU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ouWIxPu2BooL9sPsa1s2yK7C56rnydP3LbyG2pKavMxRH+7ygfNdrFnPAuEXUBFUrYNq54vgd4CEj0W/IL3MV14YYQlhENOU4ou8zjDRxFFMDtGJs1v1pjHxMSlGWVcnZd3mYPm55rG/m1b9HRJTt5D9DiXCuGZNPt7LhbFkWVI= 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.221.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-wr1-f51.google.com with SMTP id ffacd0b85a97d-33dc6df042aso170447f8f.1 for ; Thu, 07 Mar 2024 02:33:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709807591; x=1710412391; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G5SEuU829SBeN9Z+FExisYI5Ruv+jv1Pb0lU4z6MqnQ=; b=YZXfPHUipdFeU7y1m4HEIc7CgX5nkOLdgY2HjP9juFn+nRnlkgeemOy/0txXlOWlYq zZbh6PqW5oagtXd+f3PJhgjMlx6T+BFmybwRPSyMZoogPVmzxFI/PVQK9b8SVfNVq7ea 2x99FbRBmpyAD/Jszvla92k0NeG3+uyt/rz82mkLZBQ0yVD8UeVS8gY4egFuqw+t8c3n Czzt3Ew4aijlmIdXET8/Qo3c9DDjx9JNjzDVtUILGWmbJBb4vyY5zzjHgLbBrPxKnhTR oBG6JNBAY2bA1odGFLA5YEHUKx1vPICKWnImAFtkmyVq3409mZYwqkw+e4PN17ea7EfL ehnQ== X-Forwarded-Encrypted: i=1; AJvYcCW2W0RNkNnmWoYDXrtjNrHHHAy13HBE0LLli132mXruWKAJAxcYemAAlr7SSFkJ5p5rAiCNLrhFwNSWJ/02t5oD2AVJUGj/VdsnkYLS X-Gm-Message-State: AOJu0YwctFrJv+bD7byAoYkpjfatp0QzEabmnv6kbCkxJ4QeDWH9R7Ly Lp1TG1IEYv9HYmDh+j3e5seqtW0SrNgGQ/qAfNFHw8k/1s0FecDx X-Received: by 2002:a5d:5447:0:b0:33d:9ee1:48db with SMTP id w7-20020a5d5447000000b0033d9ee148dbmr992972wrv.2.1709807591497; Thu, 07 Mar 2024 02:33:11 -0800 (PST) Received: from [10.100.102.74] (46-117-80-176.bb.netvision.net.il. [46.117.80.176]) by smtp.gmail.com with ESMTPSA id u20-20020adfcb14000000b0033b7ce8b496sm19788995wrh.108.2024.03.07.02.33.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Mar 2024 02:33:11 -0800 (PST) Message-ID: <6811acef-143d-4104-a814-d3cb0811192b@grimberg.me> Date: Thu, 7 Mar 2024 12:33:09 +0200 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 v2 5/5] nvme-fc: wait for initial connect attempt to finish Content-Language: en-US To: Daniel Wagner , James Smart Cc: Keith Busch , Christoph Hellwig , Hannes Reinecke , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240221132404.6311-1-dwagner@suse.de> <20240221132404.6311-6-dwagner@suse.de> From: Sagi Grimberg In-Reply-To: <20240221132404.6311-6-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 21/02/2024 15:24, Daniel Wagner wrote: > The TCP and RDMA transport are doing a synchronous connects, that is the > syscal returns with the final result. The operation either fails or > succeeds. The FC transport offloads the connect attempt to a workqueue > and thus it's an asynchronous operation. > > This async connect feature was introduced to mitigate problems with > transient connect errors and the task to coordinate retries with > userspace (nvme-cli). Maybe it is a better idea to let userspace handle this? the whole async connect (and reconnect) just seems it is causing more issues than solving... I may have missed some conversations about this one...