Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp994114rdb; Fri, 16 Feb 2024 01:49:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWONcUApBCLqg1krw81BoPY6vioML1u9ZL07NQM40p/hygibWWK0r7Mj2xseXgYWvlJsj/w4mLx0gAi+YoKxo7MMZKZKI5iiYyEM42SpA== X-Google-Smtp-Source: AGHT+IF/WhJDNWb2wgs2/pMWci5Of8wEY5enK4/2sFZEaKgB4vTCJXLUvawfrA0qqLxJkTLk9Fl7 X-Received: by 2002:a17:902:b409:b0:1db:4589:4292 with SMTP id x9-20020a170902b40900b001db45894292mr3740421plr.34.1708076970321; Fri, 16 Feb 2024 01:49:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708076970; cv=pass; d=google.com; s=arc-20160816; b=g+dGuS5oDmG3U9HWm0ZdGthYyUyhVADWwIBgTb7OC5+pQqTq52IDxJxKL0gO07ZcI5 HoDS6Ehc4oiZVPV1Wb5hEJimtLYlucca2cnuz1g1CpGThfqIjn82ETrNtn3EasPDlEcU fox0+PFIM65NHAMzOayN8KcvY8AY4AjJgGEO69br6f165wum26ON1oxAwLpIpWv/xPKR qm//NGfYcJklXkrlehIzSQDTKk+gu5zfLa/PqFfErYOVn7RD5uTT+YFInCt17/WMDr0b nRUVEh2Ku4CqTOMm09x7eJQNPKx+6rLb+J3LFHuywOHE2NyvOA0K9Y4w4Ax3ZFZ6ItrN jqwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=U/aZOeDnFL01hyfR2OWfnC1Uprj0z5woI9XMPol02CU=; fh=Z/DuZz7DTBFCNWksBKpKJu8nj+rwZLNKB1GlBH2f3A8=; b=RwMY7c1OXqtDa060t23gA8foHaP+f+0FKdOoURKDk1LsTMOmU1M74yYRic9DPBqNyV ta/KNBNHpPN0bhIl8TAj3uSizvZ81h0gCvi5H2UalVhUoWFL++trCwSbf4+vfIJM3rxl BB6+EGwl6+kuEx0H/W5R1q6AmWubx7nipnkQ+ng6hGYwHCAWo1ucRusklSPVZL6DHl2A e8hla9RX3XzkCN0ixW9v8z+V4onLD3CVJL4PVA4rWhSyjcSPAjOCw8dSrDNs7cxzof7t nlFFXoCtUXsBZcpfguE6E8tv812W6MtBAVu0sQU4e3nWfbtULdZTX19F4QZ/ar4zEoHj c65w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-68356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68356-linux.lists.archive=gmail.com@vger.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 e7-20020a170902784700b001d9586d5d78si2690657pln.233.2024.02.16.01.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 01:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68356-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; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-68356-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68356-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C0669285240 for ; Fri, 16 Feb 2024 09:49:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DBE41BDDB; Fri, 16 Feb 2024 09:49:25 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 1AB1A1B959 for ; Fri, 16 Feb 2024 09:49:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708076964; cv=none; b=TzulwTe/jY9C0Oeo3hYdGPxApbHmpuPpbao2+JM/9md8KJtXCKCNBR5cE1p/VEpVDBl4NSvvm4uvuix2sQhgr91WcwftMHyyRmljnATZY3Ay7hqN1VMNQW04cENTaqf/9z771Q0xmnGokpKF3VPwH8AWzfYkKwzaZp227BTg+BQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708076964; c=relaxed/simple; bh=SX3rfEZ2V/LrYP8qAfhIuKY32PglZ6mFq7UDcr04PwI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qK3HBflgejn/O/OUzHuC3+k6joTToc0Blc2eh1jYGT4ZpFu9hiFzGr0Juc2ZKmrAzteGKRsTjJhRzheHRcUzdltlvlHx6e+Ji/dITysTA9qGVENQunQFes1mQBpjAe/M33/bH643kKpbxtNHsrIdjmxK2y+u4pVlLmLfVCjquso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 1585968BFE; Fri, 16 Feb 2024 10:49:10 +0100 (CET) Date: Fri, 16 Feb 2024 10:49:09 +0100 From: Christoph Hellwig To: Daniel Wagner Cc: James Smart , Keith Busch , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v0 1/6] nvme-fabrics: introduce connect_sync option Message-ID: <20240216094909.GA19961@lst.de> References: <20240216084526.14133-1-dwagner@suse.de> <20240216084526.14133-2-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: <20240216084526.14133-2-dwagner@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) On Fri, Feb 16, 2024 at 09:45:21AM +0100, Daniel Wagner wrote: > The TCP and RDMA transport are doing a synchronous connect, meaning the > syscal returns with the final result, that is. it either failed or > succeeded. > > This isn't the case for FC. This transport just setups and triggers > the connect and returns without waiting on the result. That's really weird and unexpected. James, can you explain the reason behind this? > Introduce a flag > to allow user space to control the behavior, wait or don't wait. I'd expect this to be the default, but I'll wait to hear more about the rationale. If we keep the async default the option looks sensible.