Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp353036lqh; Fri, 31 May 2024 03:28:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWf02mBmrFbca1OlfIZ1pybVAv2pM4w3RV4jFk7bmOQLlDbdQ5hZDYZTPvn0GYX+bdDlBeizy+CEzk6HN/yMO/h5fJbi1vck2PMhrTotw== X-Google-Smtp-Source: AGHT+IG9f8VTxEazgmMwkt5ok4SVrtRi1jg7an8VXXa356JId62CBRWEt4qOM8nxwKxFbdG/g2am X-Received: by 2002:a05:6359:4ca0:b0:192:9834:7975 with SMTP id e5c5f4694b2df-19b48d78b07mr161514455d.11.1717151335836; Fri, 31 May 2024 03:28:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717151335; cv=pass; d=google.com; s=arc-20160816; b=PZWM57yidZQUJj/nmAMeB5ZHKMwE9zMCYx6Kk+uLOO2aMzEmvFdPNcpWt/sFgK/HiA I9+ogQ/d7s8dNMoeS03djumzwz0MQF/LljgjfdTnL9le4MrYj0U+UJ5KtXwpA0AOvGza dpIek+g8F4OI7rSQUDiftuTxGf1KSdnIw15kGDTPh/rWiwlDhtkT6Cpw/4DMTRREfaQA FqUWZxgTP82TKVjBnnkf8fz2nNdPR16OpH0RGE/yGnkJWxqxhYeaiW9oHlc+3TqCNWlu MYHU6Ewh09WLBiOnMf+pJUZda4G2wRMMaZuc8f1/rbeG+3fnuaCRz8oWRWi9RdzJ7svV OShg== 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=KPUQBgC9Y099/Rf+R/U82syXm6DCziPo0C2zDGSYU2I=; fh=qn1thDOp7oUnXpP8lW/X1YDKTirKPzQ6NBfQwZHyQ0U=; b=nDRFehidfVjShhVpTHNIl8Zf0uWYarJWcumjL1XP6sQPvUwGD4wvdMXofR2DUnrj1k elJaJv+Yo7aGepCpnYh0sOb9DRIlOC8upkEjUXkW1b3sxUAesdONuy0w+9ske4JEKaXN W7hGYCnXHfz2/2jYCUw1mBDtHWRBye4Oy972oNGIy7LCZ4wkDot4yu3irnRB41Sd+wvu OpArzjJY8QXS4jK/+BzSTZz4aziDAuOE7fxqkfM4+HiRlHKIaqAwPfNF/THXaBJa3PsC r1NM4HGQWY40ICko8CJavDwB8FR2cq4oNCmJrbEbcH66m0H5sr6PPcr5tBVPnt6GzMWy Lllg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cIpelTrE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c355157d8asi1328187a12.189.2024.05.31.03.28.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 03:28:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cIpelTrE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3505-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B33128472B for ; Fri, 31 May 2024 10:28:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CA88155A32; Fri, 31 May 2024 10:28:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cIpelTrE" 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 09A39150997; Fri, 31 May 2024 10:28:50 +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=1717151331; cv=none; b=t2X+jqxz2oEJ1bVOhee9SzPLVpC7goBwgVaGa9W9T1z2jKwvkS3up8dy3omtY/OSfntqOorC26vjMY5SsPaLuPr9dXv0ER9TPEPh7HY6L870WDbhk2gMe0GdHI2n1kv0YlQC/DW9VpOk2du2111LtQRZbdxkudWZ5R/MrE07oLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717151331; c=relaxed/simple; bh=KB7cZUDNKLMAO8YBjAtoXYlExNlywx7Yb8mKsAAluKc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kJCwjN8n/x15hJnzDa9OgzAr5ZHR72MFIfkOFYKl7SeQLbqSul07YWzQqhReOnPMyTOJ+D7YbDhOCskQOuGKzfJY9Ds39TQpzGx+vTTF76jNV+I9CfF6V9KhngkqL6T39z5ifJd0CWjqS+EzVgWm6k2qkcoxpTQnR95sD43K58M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cIpelTrE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 930E2C116B1; Fri, 31 May 2024 10:28:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717151330; bh=KB7cZUDNKLMAO8YBjAtoXYlExNlywx7Yb8mKsAAluKc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cIpelTrE1vbY2pI4N067jdvvohc44mf5PUJCwDpi+SWltx44rFhuGRfBFXTQrOFAF kkmPBy+/nrjlRzsi1RVHdtsqTz7RoeTmtAwXiq7bTRcqq6gPBAYwoxRElKqEqVqugj kr1HcKuC9vuF4HCoG0hoNYqyu7DfQJjyqmhdjXQm+L0WXIDfJtTZEie6cLumqEQ8dm 6eISPD5/1sH43FygdmX0YHAaTbVqc4GMN3v9jdyivbuQ8tZOXEpPqfp9m2d2TI3GhR DmCgIvSUjN/5i8DC/qNuykn4I9DyU6d9ehxxx+blgg0F6iCM1CF2UyNWHL3kvZE6MA Lru+PtSncp43A== Date: Fri, 31 May 2024 12:28:44 +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: <20240531-beizeiten-mythisch-667a70d59a82@brauner> References: <20240527133430.ifjo2kksoehtuwrn@quack3> <20240528-wachdienst-weitreichend-42f8121bf764@brauner> <20240528-gesell-evakuieren-899c08cbfa06@brauner> <20240528-gipfel-dilemma-948a590a36fd@brauner> <20240529-marzipan-verspannungen-48b760c2f66b@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: > I don't understand what you mean. If we hand out file handles with I don't think adding another highly privileged interface in opposition to exposing the mount id is warranted. The new mount id exposure patch is a performance improvement for existing use-cases to let userspace avoid additional system calls. Because as Aleksa showed in the commit message there's ways to make this race-free right now. The patch hasn't gained any Acks from Amir or Jeff so it's obviously not going to get merged. So really, I don't want another interface that goes from arbitrary superblock to file hidden behind yet another global capability check.