Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2593070lqb; Tue, 28 May 2024 05:04:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLQuVYtOTmt8xGJMokIvDeLhbkCirsMc6NmSuR1Ucz2uRenO4ivkkWFWKmHjDMQ5jY9DxYwhboyZyqIVjGlj+ayHgYcQW1dhN9tgy1iQ== X-Google-Smtp-Source: AGHT+IGoPOyP94cQJ+iOtwhmkis6qWSTSSzubVLF6kMLj/kA/5fOHyzuhItlWitgzNFwTvSgFQB2 X-Received: by 2002:a05:6214:2c0c:b0:6ab:749c:ed3f with SMTP id 6a1803df08f44-6abcd1343fcmr147524346d6.40.1716897873112; Tue, 28 May 2024 05:04:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716897873; cv=pass; d=google.com; s=arc-20160816; b=F9NOE/HTMQyivrt9XtA+FuFt0H1qZRjWUu+4UqINEF7/lIjns+5fO7PtsvchQVTQWU +99Oodmiwe5G24Me1M3u+2rgjS6x1tMLaoVhA/Sgr8p6TBiEBiN8g1mNBgmgRdpR18jx JyBTu2Tehz2Xa7xcqIhyZHqb0YLdaLgrIJQBOXHCqqMg7A9D/2xB7hDXUmq/i+U/mUCC apSCeS7d37AHVTahOtiGBPIekDS69/0WZOxO8UmvIIt3VDxjz2xBRoZMjVS58FE/Hif7 RihDd994GUGkt7/zzHNLJFG/Ej/IFWg9Uh33a/OIFOKkakuQcLR/zoND1soOLtVtAGaW 2nDA== 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=9z6jukMmGjUOeyjsyGUi5gmMm2WC+vYgMHDMD3d21Go=; fh=qn1thDOp7oUnXpP8lW/X1YDKTirKPzQ6NBfQwZHyQ0U=; b=vjGEmAgVyXfPuyFNYWGB7mVTjndmLfSFKDVBhiYls4VArwwRMPTQRpWWp58upMzxND Q62sMI0lkUuAivz3gmY6o+QguwkEd1C9DiNPvmkGkt/XEDo3KMNC0S59OTSfEN0yuhBO y0QJpfnTArGIs8c+x2l4SCP5hS8qo1N1sUaEg150CiTgsJ8rB4Pe3Qvk5jFwhBYummNn pUbfLfZJwuVcj+duojLu6VCnVIhV9zE70jzjaup3nZeJHwCglg4Fcuj+ixfI9yDA9AN8 dUrfiNtihJ6ikLF2T/Rufa/nzGL3l1DxAVj2fIqg0i/dgHPtptloI7fKI0FmXRyUlh4x E4rQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dG/8WVC0"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3439-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162ce16dsi101442496d6.541.2024.05.28.05.04.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:04:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dG/8WVC0"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3439-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3439-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A49E21C223E5 for ; Tue, 28 May 2024 12:04:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3872616C87C; Tue, 28 May 2024 12:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dG/8WVC0" X-Original-To: linux-nfs@vger.kernel.org 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 04EEE13A242; Tue, 28 May 2024 12:04:21 +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=1716897862; cv=none; b=B+HX6jVlnlajYtIZ5qwJ/a37UOsFYopdgirouU31nZ/FR5UWM6gAyGqKC0h8ERq1ggMXJfgGh2CbripRUxVgjv76U7nh6sb59QodOgfJf1wf2dqKVbh0sjpDum4vKk0MfGaZN7tC/fsR6gPoZP3bZR8vGHPC+iZccqgU8T4YBh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897862; c=relaxed/simple; bh=58egx2ps+6Wd1SWHNZP2itAP+QAyWA4OV5HwePJdVbY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rBgtR9SehTIWMbB59T/tJwkanzocgAla0OG8Eysi/qbpARcoCIv9exjuVWhI9lkvZRZ+C8G+meI5337BHZc4apNbYiR1uWmldy6IgpdNU2LqtJuOMe5AZL9Sv+sceVyQmp0B2X+rodqQdncIKMnKegR1A97eL5yPiTjAxCVcJAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dG/8WVC0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88CA4C3277B; Tue, 28 May 2024 12:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716897861; bh=58egx2ps+6Wd1SWHNZP2itAP+QAyWA4OV5HwePJdVbY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dG/8WVC00ObIsjXJb4Rbw4GYINkQAmvMhB+ACGZyZPnoB3/5W17IxpBbpRhLMH/Zt RYKOYgWMBur6TREpatnG8wplU6AoVFE98XARvDOmb43Qb+6tZdtrfNyu0/P6kIz8au c+rz3CsefuHcMmUDeaf3FmgKn86NOHJ4aKsNGzIceAAFGpJqRkFFI5/rID5S31ortM B8WbdEi6TkVmwyfZwDexHs5Q7hr0Glk7Piwul4Wl6pxq3R4yOeW251LE90IrJTDdNd YHKmSEmphEyaIUZfA302dT0s6MS5hU6ijm7HwddSKztskCa0cS7q9GIVPNL2F62t6w A9PthY+zBZStw== Date: Tue, 28 May 2024 14:04:16 +0200 From: Christian Brauner To: Christoph Hellwig Cc: Jan Kara , Aleksa Sarai , Alexander Viro , Chuck Lever , Jeff Layton , Amir Goldstein , Alexander Aring , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH RFC v2] fhandle: expose u64 mount id to name_to_handle_at(2) Message-ID: <20240528-gipfel-dilemma-948a590a36fd@brauner> References: <20240523-exportfs-u64-mount-id-v2-1-f9f959f17eb1@cyphar.com> <20240526.184753-detached.length.shallow.contents-jWkMukeD7VAC@cyphar.com> <20240527133430.ifjo2kksoehtuwrn@quack3> <20240528-wachdienst-weitreichend-42f8121bf764@brauner> <20240528-gesell-evakuieren-899c08cbfa06@brauner> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, May 28, 2024 at 03:55:29AM -0700, Christoph Hellwig wrote: > On Tue, May 28, 2024 at 11:17:58AM +0200, Christian Brauner wrote: > > As I've said earlier, independent of the new handle type returning the > > new mount id is useful and needed because it allows the caller to > > reliably generate a mount fd for use with open_by_handle_at() via > > statmount(). That won't be solved by a new handle type and is racy with > > the old mount id. So I intend to accept a version of this patch. > > The whole point is that with the fsid in the handle we do not even need > a mount fd for open_by_handle_at. Can you please explain how opening an fd based on a handle returned from name_to_handle_at() and not using a mount file descriptor for open_by_handle_at() would work?