Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1221049rdb; Fri, 16 Feb 2024 08:44:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUauKYC5Gn+bzh0/YvcrR4jjWqIiOYj9+u6jfeR5v8s1KLOgZweykWgUzIYLACdlXbh1eVJZGS+XBbZSs6jPaUCc/ZGL9U2CoZJ/gEZRA== X-Google-Smtp-Source: AGHT+IEeCrZqaL4/T6wu3UEvQbjfkm1Io5TdEHN12XT+3mBs+WS1KoiLVZ+oBES6/JvtR33WXxia X-Received: by 2002:a17:906:b0d9:b0:a3d:6eb4:9769 with SMTP id bk25-20020a170906b0d900b00a3d6eb49769mr4439035ejb.15.1708101856449; Fri, 16 Feb 2024 08:44:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708101856; cv=pass; d=google.com; s=arc-20160816; b=fnoH5fY0KPPNn/pzuILtZxhFPWNhGRyH7TCMgAuyvlQE/P/Bz86BZDuUHFJXe8QAzI 0P2fiveT3fhbQxTqwQcscu1mGV8GjL4ww5gm42kq+GS5cAf37CPOgkZBHPd2PpDg2KPT Dv0ziyrIGYUbAw5QpgpesV76xKJBPDKn4CmxOdnhpg5/dKLYGA6P1Ns0YqHNBQBfHK7c V6oc7XwBykO9xijFOiDl3/7tjlZ6+ip67pTBaepc7oS90vqgKJyzv+iQuLOVT/er46eb kzVWaaPzUHdQnrpU9RU5zFtyJREbSteHj8iBpT2hFLZaXNKLVDp3ao8wIeFGuuYOjcyd Z/NQ== 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:dkim-signature:dkim-signature :dkim-signature; bh=eXJu1lti/YL9b9eLBL5o0g1fuOA+z3Z1pve6u3c4mhQ=; fh=FO+JbhANgYjicRGAE9UaWTxwjUabagE4whG7VWoM0Gk=; b=Aw610rhWX65oRoSCssvqNMfLAJ+KD6nZLSbIRAKzBSMp+HiSxeqkqo/hdC3fG/Lg+f ypPiP1hTmBI/HX2YwgEln1qMDSbQ88QcUiwoOwadL1yKVJ/Lq3pJ0JneOE8Q8SaFWFbs fsKpPJjdwD57iey0SizO/7CR2EcNzyr7GfC2NBgNa37Biq5E/M+leKXsu2fymBIIYxWv Ci2DKCCDXeI3J3HmYEXxcp/FekfaaRdvsgkMLX9lIMII4GhDtLXj0Tsj7tIwNTxmoLPo SIvJCuljvYSTlw782KqWTzDkPmcZaIRW1VsTvpkkIJNzFYeXFSH2US0J/aWIlO2snlrh 2nEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=oXxYf1GP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=oXxYf1GP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-68974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i21-20020a170906115500b00a3c83f513f3si78069eja.564.2024.02.16.08.44.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 08:44:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=oXxYf1GP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=oXxYf1GP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-68974-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 D271F1F2370E for ; Fri, 16 Feb 2024 16:44:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04376130ACA; Fri, 16 Feb 2024 16:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="oXxYf1GP"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="RPF5q9EE"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="oXxYf1GP"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="RPF5q9EE" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 5282F43687 for ; Fri, 16 Feb 2024 16:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708101848; cv=none; b=Jv1d1D/tDud1bonAuL+RiH66CcZ/yLheXY7GcLdkvIAJQ4msHYUV3wycE0I4r3hZU4IT30On2WcuQ5RjrQm030IayK9KWSMV+fRwYhbzc3N1I5MX9M0kq4cqWFFnGdWHHxGg8rXqYJ15X02nlgr4zsaVcUc2FnOpCiZEvSPrirk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708101848; c=relaxed/simple; bh=DNofHlxt60HhajpC6kgIcM2jyLwxGD85DFjpF5ALyCk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GblDj2WzxA0DJPkdlgoxlCH1ffaYnTfAuyu/0VNCXe+pGSvqQyZ+Z8NOu0+CP9zwcNY0POawZXAKsBbWSrwt8QhNXeV1/HwYzWRk/zAD7fDe3wEqh/NUEeTTHbGNmtxY+dWM22DPjnwJlKAkxx6+X50VgYqDzzHp016NOt+4gPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=oXxYf1GP; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=RPF5q9EE; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=oXxYf1GP; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=RPF5q9EE; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5E9731FB73; Fri, 16 Feb 2024 16:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708101843; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eXJu1lti/YL9b9eLBL5o0g1fuOA+z3Z1pve6u3c4mhQ=; b=oXxYf1GPFWXOcgqcHA2ePzg3k8lbTe5hjXx7KDjENBXhJ9IOAOBTKxP0EQ3/bP9kiX08RB 9FQk652sf8JXla23ZARcq32SRIXxMkEKc2OQrTBrfeWNoHeEbJAePYu7OlHMCpE4u/Xc2/ 7SoYKKFkwFfTTEovCasaVjo1CXzA3Ok= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708101843; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eXJu1lti/YL9b9eLBL5o0g1fuOA+z3Z1pve6u3c4mhQ=; b=RPF5q9EEsaz/WG47s0EwJdUF0GQIGvUBDsYv42hxwOdVr/W2jEkFKDERCD5cUHa3ywLC7y lvRNIfmWHVdNxTBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708101843; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eXJu1lti/YL9b9eLBL5o0g1fuOA+z3Z1pve6u3c4mhQ=; b=oXxYf1GPFWXOcgqcHA2ePzg3k8lbTe5hjXx7KDjENBXhJ9IOAOBTKxP0EQ3/bP9kiX08RB 9FQk652sf8JXla23ZARcq32SRIXxMkEKc2OQrTBrfeWNoHeEbJAePYu7OlHMCpE4u/Xc2/ 7SoYKKFkwFfTTEovCasaVjo1CXzA3Ok= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708101843; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eXJu1lti/YL9b9eLBL5o0g1fuOA+z3Z1pve6u3c4mhQ=; b=RPF5q9EEsaz/WG47s0EwJdUF0GQIGvUBDsYv42hxwOdVr/W2jEkFKDERCD5cUHa3ywLC7y lvRNIfmWHVdNxTBQ== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 4B3C813343; Fri, 16 Feb 2024 16:44:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id 4lLoENOQz2XgVgAAn2gu4w (envelope-from ); Fri, 16 Feb 2024 16:44:03 +0000 Date: Fri, 16 Feb 2024 17:44:02 +0100 From: Daniel Wagner To: Christoph Hellwig Cc: James Smart , Keith Busch , 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: References: <20240216084526.14133-1-dwagner@suse.de> <20240216084526.14133-2-dwagner@suse.de> <20240216094909.GA19961@lst.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: <20240216094909.GA19961@lst.de> Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=oXxYf1GP; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=RPF5q9EE X-Spamd-Result: default: False [-2.81 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_BLOCKED(0.00)[suse.de:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[7]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: 5E9731FB73 X-Spam-Level: X-Spam-Score: -2.81 X-Spam-Flag: NO On Fri, Feb 16, 2024 at 10:49:09AM +0100, Christoph Hellwig wrote: > 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? James answered this point on my attempt to make this synchronous: https://lore.kernel.org/linux-nvme/0605ac36-16d5-2026-d3c6-62d346db6dfb@gmail.com/ > > 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. Ideally, we could agree on behavior which is the same for all transports.