From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796297046; b=jriDzeDxKUVmKqsEG+ffwYCQpiJt7oMEudgWm+KAGAhSsqrYpmq4efBIHkLna4B6BnJW 6KhjoUSotzDDVE5ZEmfPgJAU5WRIikzUfIi8ws2e7jHKetBCf7BMrulmnlKewICZQQqsn VRwlyO+SY6fKZ/Rr/r8J1z+6PqzM7iAVpNDmG+7q8wGlZCY89n/SlnSmcPwqWDnR0vwB0 9kZXqK06/htE+PRjWtCb7rmFpTRhunx26pAabNSaY9A2Ak8rI+XXGGcKTzt/t0yFxciEO RVZ3SuOoAQLwN+lBvORhCByauXiDPD6yyJzvbLBwMEGnz7hy1oDppct3Y0EQVjY7WeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297046; h=Received:DKIM-Signature:Received:Received:X-ME-Sender:X-ME-Received: X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=N8nRBU6m7q62OkkY+xbDMoJbhyFNMCLs+HUzMa0BBos=; b=m9264qa6Mv+CDLTRWHKLywX7U1p87tRYAuGx08VJridN15OqZ5+Iq7bv7vVrEuHwcLhU 6OXqTjjxwE6XVWlQnF5ygrRqjNGku0QkaVKx8nzOJbS4wvBc6Mk/9Cx12xnDc6TiCPo06 Rui2vdkYZzpMV0ERne3s6lbADGFYuOxV6qOpSfJcuOhKUfMfzjf4hvH4CU6HdQpcrSzEc Uv1rVIEqzynrvxNEW7RhIhTEW3E49IXX1nv7pi5NRSdaPhOOT9eQnwH6ERLgAKxosUwE9 6zARqvtFc0CJox4ZaX8JQHebuaqRJV6IPYDT5o+mIuXrJL7ZFVTT/Ukj4TbfB1Y+xvg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="mr/fwwW3"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EDCC606A32C; Thu, 3 Dec 2026 11:24:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mr/fwwW3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 262CB1F000C1; Thu, 3 Dec 2026 11:24:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796297046; bh=N8nRBU6m7q62OkkY+xbDMoJbhyFNMCLs+HUzMa0BBos=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=mr/fwwW3EgI3p5Rkjcunyh2dn5484YUtDhDpvtqf0JyrCjFTScfrx2toQhL8g6ksa +0uGtkDcKsRh4Ea3KHwPqC5g7CptLTKz2xLspXy2W3U//p6hcMXUvtR6ZvmTOb+7kq pOoKYKD5sDffUpn7G59/pjKiuEYkBpx2OGILkFs+bZDinBpcVCBHO+q34So1Le1yYB siIslMvnYEeUWhlnAvG/6s2D5Qsdn/JFLlOMUG71LGxH0SHHj59zR/jaTg4l17XZKY ESjonGT8KAZ/RcYprugUfpiS5cazcvZh9XoPklOQkmXoWR6qF7Yf4OtvUNIcqWy18o hqY0afrn2lu/w== Received: from ams-compute-02.internal (ams-compute-02.internal [10.64.2.62]) by mailfauth.ams.internal (Postfix) with ESMTP id BDC69198003A; Thu, 3 Dec 2026 06:24:02 -0500 (EST) Received: from ams-frontend-01 ([10.64.2.36]) by ams-compute-02.internal (MEProxy); Thu, 03 Dec 2026 06:24:02 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEdicThtiN23+J8Opm8GHAPVTqyH8GigxQtik85OcrM8Z8WajXRuQ5zDaVJTyk2+2 XnKgFn9+Hc/S4f3X/52n0O4xRzDORLg8DZ4T7tHvFwL7BNfsa0EOXUrGs901Mj6UVm1wji 6czipHaurIHQ4z6GqnDluchWBSSmon66by+t2kdTKgSTfwyFXsrOw4UJ6pWg2y7fkBUavh Ce+4QWdZFBxR6vwvoQIWUDmL90btzmGTU65IjRZf4HvDl/fQOq4LD0uQb6BvvdInnNeAea uDj3LOLWkkahQ1DHtwJRPHGOrvNxbOp36TBLIwAMfXUNvc+p/CQ73ETjepma4slOI5kCq6 hV2cdvvisHbkmzE9hmxfo3ILQQvre+6o09CcpT5LQVX0w1tDuGEZ74KG+mz/X0QETtcoeR w9jdC9pC3qyPO9w+fZReGTtuD1W1BI1O4yLBpXvkJKgtCwtGuG8M8Kv9q/te83CO/n52ls mnADZI3+cYqi46/SakeHwt8wetie14i0Oq+4ihGtIlLJDjMorGYDG9NJI/Y41qP0anpjBr M+5kfQA0jMYXsKsR9cRV/nWABwbCuW2pcSmw3kanhNOssC+G2M1Zd/+1n8Q2Ia2jyMmIrj /FWQShQnePAuiscwM9y7fPqyFgjVqf4uQtSuFndUC3j9haLnZfcjXJSpl6jQ X-ME-Proxy: Feedback-ID: i78584a88:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Dec 2026 06:23:55 -0500 (EST) Message-ID: <81f785fe-ddbd-4304-a30b-94eff7093c58@kernel.org> Date: Thu, 3 Dec 2026 12:23:55 +0100 X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/9] rust: rcu: Add RcuState To: phasta@kernel.org Cc: Alice Ryhl , Gary Guo , Miguel Ojeda , Boqun Feng , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?UTF-8?Q?Onur_=C3=96zkan?= , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Matthew Brost , David Airlie , Simona Vetter , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Uladzislau Rezki , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Lyude Paul , "Joel Fernandes (NVIDIA)" , Boris Brezillon , Yuvan Shen , rust-for-linux@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, rcu@vger.kernel.org References: <20261202113914.1660411-2-phasta@kernel.org> <20261202113914.1660411-3-phasta@kernel.org> <0475e49c9ef2c122f784f2fd449eb48e731ba1ee.camel@mailbox.org> From: Danilo Krummrich Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/3/26 12:14 PM, Philipp Stanner wrote: > On Thu, 2026-12-03 at 11:41 +0100, Alice Ryhl wrote: >> On Thu, Dec 3, 2026 at 11:26 AM Philipp Stanner wrote: >>> In C we spent years explaining to people that the compiler should >>> decide what to inline, with only some exceptions. Yet for Rust we shall >>> decide ourselves. Why? >> >> We make exactly the same decisions in C when we decide whether to >> declare a function as 'static inline' in a header file, or as a normal >> function. > > Then why can't I decide that foo(), despite only consisting of three > lines, is a slow path, unimportant, can have its own symbol and does > not have to be inlined? I guess the straightforward answer in this case is "because the maintainer told you so". :) This aside, you absolutely can if you have good reasons you don't want something to be inlined. You can even add #[inline(never)] to force it not being inlined. Sashiko is just giving you a hint that you probably want to give the compiler a hint, as it makes sense in this case. That said, I'd love to get this hint already before the patch reaches Sashiko, and I think Gary does consider adding it to Klint.