Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2537440rdb; Mon, 12 Feb 2024 08:01:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVWJJnP//BMhJM/ylmChH1EOaiFCHMLa4ag2GZNaKCrgCjkf4JzSxM+ROWH88WnoY4zTV6o44oiihxN9rxopPUtc3knPJ3USsfPGw3aQ== X-Google-Smtp-Source: AGHT+IEDfY6Lh1T7pqloNWInipI/tgM0CfNCzKqx8v8D6uIAu6WDP6I/ryUQGVRZ05YwvQK7sbMw X-Received: by 2002:a17:902:d2d2:b0:1d9:5923:c247 with SMTP id n18-20020a170902d2d200b001d95923c247mr13369830plc.29.1707753705673; Mon, 12 Feb 2024 08:01:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707753705; cv=pass; d=google.com; s=arc-20160816; b=hXEYuCR7ZQ/yozbfSFL3nOOccH6vjWVq7BfqAWgQLeoypXz/XoUE0WFFa3NUvYwY89 Oy/lxbDbAaQe6BNVTs6iPAmSoQ9JRbAb/jBTm0jCLYafmxHxHwu2SWdmJAXrIL6khbbk +3M74n+vHekVVF41nPJTYSQPx/5zLTdq9tzm8rrN0tstY0iJO4SmjMdxMn5LmivWlkz3 KZICiBsfig7lFqOw+MmbWQwN8fy6pjqmfxT/BNGgrWnGEIyGGCfxif5vmobTJmpZFYcs 2ikrn4UU7HHvMN/GpcDH2JcNSBs1s065Rm2tsDMUh+jrtJxTZyiDqiL+IwpBwIV6ww3F lJwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature; bh=ts9JKQjzC/NxAzYOh4VItjpOni9YdKKmqYr+RzhZOeo=; fh=Xns8TBJHmBRSyUbFAyL8XS1eb3vBOajlQwz6zkV62Jg=; b=RSs2ulgeYuaiSI+NXZwXCMVvEZ1KG8Elbk9uIUwbuJKTEoAmXkHDTi6asZHOMFOfrQ lEd8DdILO9FP2ihv60GJAFf0z7XBCQpPkal9fnWg8c27Eym2za5+zyonsTdWkPlUqojv CpQ0C1/7hHVCYX+VsafVBB1w4a6nQ6FRptcHxdhdsSued859owpCJFQX4waUgtO0v/PG UNEQ+8kuTpi8tck/O2INhLEdUfhHJnUJeShKEJc5zxR1AoOcFPu21OUHg+hYBUBYq5GK WAgso6F+VM+QUJSATu+0JBJDXKSET0k6oEZWSRMzVAVwHkUDuNDdwJkTzLAWUgtx8lKc KEsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Akz1t5R0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-61930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCVBYm045WVOrDD8P75gHoAUZvEvH6MLdAZHrR4mE7AO1eO/EWqVNk3+AmK3nJ+YZoAQS1UJ5e0scHy0WlO8YcnEsS//lhhgB4yzYMxXmw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s3-20020a170902ea0300b001d990844e53si446314plg.437.2024.02.12.08.01.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:01:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61930-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Akz1t5R0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-61930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 76985283EC9 for ; Mon, 12 Feb 2024 16:01:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 781BC3D0C1; Mon, 12 Feb 2024 16:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Akz1t5R0" Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (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 0949F3CF72; Mon, 12 Feb 2024 16:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707753647; cv=none; b=L81FNAdMQdXzHVIx01z4eKREh9oqv2ikNyuK8eW/IFMMqC05YYHLD0yfsjb1breV7g3oN2BhNctuSVD7qCA9/rOBWc/lIWTkPU3YFc5oMpgTJ+fUERnuJZ6xGth1NYRmC5jJBxQYQd3em0glrRMiwntaEQNz3anchU4flfbuBK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707753647; c=relaxed/simple; bh=m4d+0unINKl4tk2+p/lo5cqI8u+m5SoJ2O9SqUlpjTM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hRgfCs8q2HZkPQ+FvBNExFLqNrUhoVExcxHc3fx8KX8YFSf2VaIAgn3dEyWgr4pAuddACBMltzRyWaUq0u+BpemxStsS3f1+vS1SU/YIMMyjuxS1aJIkjL/PC/c8A0O/5z9foNAIPM1uNdgXres9VEH594EbQFgZaP+rqgrY1iU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Akz1t5R0; arc=none smtp.client-ip=209.85.222.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-783f553fdabso232853885a.0; Mon, 12 Feb 2024 08:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707753645; x=1708358445; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:from:to:cc:subject:date:message-id:reply-to; bh=ts9JKQjzC/NxAzYOh4VItjpOni9YdKKmqYr+RzhZOeo=; b=Akz1t5R0puubKDCQ6+VKTa17JRuVmVA3Qd+Nx5j2zttO2trMLPX345FKB+COf/BQY4 dMhCVWklhbK6TZzDnYe/zkyrrOokilXalrgzDtLyOlcOn9DC9TUDUJBWn1RhJTYMaDAP JjgoPGqImbdxxwqA3DIyqZH9xc2BXeydyOfWXmia93tcakYMD6OrswsWoEztfHgz5yYX OiBp1VdDjeLd8jXEv06UiCvPGRBfi0z20LvloQUvUj6a7VErzwFfahv4Lk1v2GYR/NyC jg/NNZAnytJ65naFcJLaftqoFamSB+0Y8mpN4GiClIxOvGBZA0NT2ZUtWNDzfXzPms8W sw+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707753645; x=1708358445; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :feedback-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ts9JKQjzC/NxAzYOh4VItjpOni9YdKKmqYr+RzhZOeo=; b=t8eaVEXWXDmiW8E1J2p1rr3PipYMEO90KgVWsRETH9MK9ZFh1V/Q8KOO3717Z8DNZb lSNyIHwsJfihC8G3mKZ0RVQZTlmx+CPdrGwwe1AyXlTpctxp2jpNly396NU0hH7qZ8GA dgWod6ziabFdvw5stA2UAz4E+l4n7exfgLIeCqwNB5/3hhdKb8Azc/GzZiuVxrLVPUeE UQSu30J5NONiy24dqTLa1M6Bkh0bE8vONez8GHQ40cvDB4ZizVJnf5v3toGmxpspLGF5 hvlahNHussn6jgFjXXWQGO4z29H48HErrpt+n2OcI3IXgRBxlOIOOkDX3C3nFrxPZmj8 JOGw== X-Forwarded-Encrypted: i=1; AJvYcCUTVHHlc4AR++eDElmWjFtZsTeotmdl+B4nQY34vCvbC771OgXymwEKABDXK/lT3dj67x7PjefuFaIxcdUWWDjsjBGrD+L3BF9BDl0Q6sP8xy4MC50uIBC4weqKvIOiG9koX8D41gCr6V24bjaN9i8VvaCbjDn8El5OIwUedXxT/shAIRdQ6d4pOuQB X-Gm-Message-State: AOJu0Yw050HYUMSy0R4iPXeAqx5jk4SfCV7DZqS7kVLoWr12jNmNyOrh +6h7xzHuq26hlPcYU1HxOGeXQoNa0JSj8Ri5H1ZIml91QnSvdGOz X-Received: by 2002:ae9:e913:0:b0:785:b078:c509 with SMTP id x19-20020ae9e913000000b00785b078c509mr13088072qkf.22.1707753644775; Mon, 12 Feb 2024 08:00:44 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCX36IW/4fuSd+P5VhVTxCQpup5ZpOfCa80EwhqDBZRSwy24HBcrTcF81yjtcM3KzkigGmkq7eInD7ockprdNTGeMD315tIr1jIL2GBcWYB9a8SzXl5+RoA+Ix7ZvPGCC9Z/JUrsXX6Cerf7vBk1US7bj0m1rIpzT0WBGJstRKNWy3Iu6DXwZF2fUXDDlKSegszJr+nXMUYa3/zecbAPw7+7iG3u2ghchIrQuYa/3m8GJOd6wS0ARep5TPYYYk2xWz6iG0RDT/AYx0cyX+ldw1aU2ASCzbjM1kHooa+fTtVg5SI+v1b/CG7gJQAwrOJyDCvCIogDL4rlrXcAobCFUPc5GTY0+QNIIotEoSnUq3lXhh+m2tK+o6Bwok24OP5nWCeQypkVk978yJ0M+Dw6ALvGEqe08c067E0lD0gJH036NQ2Aj02l7Z/vJnO6oRZ9uzXqIwvZ5LOtc1z3F5c7ARJZyiY0Q94a20brWUSnoft6Nc5/6A8W9xd8TgRToHW0Z7ldvMyQPsH3XdDQlL0Yumt1zteUias5X3NOyBTV1XelEesAPuVonTPg0eGB/MYz+nq8i8BrgiOFpc8QK73ly3k/qNUNQGbo8r4XyWkNlycObJOzJDqji1s2/tUp8SOJtjLoDDheHNq+84jA+mwY/nBLUGxEapfVreD+11g1akTIpgUEISKgdDcIu/znfM0leVvZuwvukukjMwiJhLS0VMoAmdEAJPooGDUrIq9nudtwcF9sAlcHzNR5yOgK6HgLX2a/XAYNhjXhSO70k7XgyWa15dKIkkKsbeNmXUrXkoMEGxiChIgtLMxa+NBU57GDbkngLy9MheTrCBoleh8Pjc8+EFf17wYHknPx Received: from fauth2-smtp.messagingengine.com (fauth2-smtp.messagingengine.com. [103.168.172.201]) by smtp.gmail.com with ESMTPSA id x7-20020a05620a0ec700b00783feb25669sm2131418qkm.116.2024.02.12.08.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 08:00:44 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 94C0C1200066; Mon, 12 Feb 2024 11:00:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 12 Feb 2024 11:00:42 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomhepuehoqhhu nhcuhfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpeevgffhueevkedutefgveduuedujeefledthffgheegkeekiefgudekhffg geelfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gsohhquhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdeiledvgeehtdei gedqudejjeekheehhedvqdgsohhquhhnrdhfvghngheppehgmhgrihhlrdgtohhmsehfih igmhgvrdhnrghmvg X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Feb 2024 11:00:40 -0500 (EST) Date: Mon, 12 Feb 2024 08:00:38 -0800 From: Boqun Feng To: Alice Ryhl Cc: Trevor Gross , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Peter Zijlstra , Alexander Viro , Christian Brauner , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Dan Williams , Kees Cook , Matthew Wilcox , Thomas Gleixner , Daniel Xu , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org, Martin Rodriguez Reboredo Subject: Re: [PATCH v5 7/9] rust: file: add `Kuid` wrapper Message-ID: References: <20240209-alice-file-v5-0-a37886783025@google.com> <20240209-alice-file-v5-7-a37886783025@google.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Feb 12, 2024 at 11:04:47AM +0100, Alice Ryhl wrote: > On Sat, Feb 10, 2024 at 8:43 AM Trevor Gross wrote: > > > > On Fri, Feb 9, 2024 at 5:22 AM Alice Ryhl wrote: > > > > > > Of course, once a wrapper for rcu_read_lock is available, it is > > > preferable to use that over either of the two above approaches. > > > > Is this worth a FIXME? > > Shrug. I think a patch to introduce rcu_read_lock would go through the > helpers as a matter of course either way. But it also doesn't hurt. > Right. And if I understand correctly, we actually need more than RCU wrappers to "improve" the cases here: we also need the RCU interface to be inline, plus the extra maintainship of Rust version of kuids getters. These are all outside the scope of this patchset, and we may need to revisit later. The commit log here basically says: what's done in the patch is OK and probably the best way to proceed. I think it's fine. Regards, Boqun > Alice