From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com [209.85.221.172]) (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 515A323ED75 for ; Fri, 23 Jan 2026 07:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769153220; cv=none; b=u6GuOu3sq2CtOab8umJbVdvtw6RU5WWTN9zFeLw2eim29J75SA+/vA1YlYd06xqVNep0ePZwyf2LZkPHIEeMMAwLmcgRsyxDyG5F+JVYIhkKr8VzDxLnfJDPv1b7Q4QuBTOdufu5HikWo0sBNcnJ65BLML03+1b0PEQFHqnxblw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769153220; c=relaxed/simple; bh=0+XcF/DKpKJlNk6gvVQ80r03ERq08zSyXtZRvvv3D2Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nhdjIKeV5p8/7pAiMXoYplqXuWxwYskHmhlQXDozsevZJJEAbRLwMK4NrnTnmJA/Njnyx9yz+mt85GN7nCPhpNtzDfuwzhbySdmHfvzQ5A2cB+qDH/stP7br7cRCWIRyjSSlX+Am8cvoc5tBTi2itIUf6K+1lPh1KYnfPd/AF2w= 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=KhGtuJvY; arc=none smtp.client-ip=209.85.221.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KhGtuJvY" Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-5637b96211aso2079290e0c.2 for ; Thu, 22 Jan 2026 23:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769153218; x=1769758018; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:from:to:cc:subject:date :message-id:reply-to; bh=cpNcbqq3QKYz3lgJbaD3XSigUERyy/+zoCPLiX3NuWs=; b=KhGtuJvYz78xxnlA05/IpdXSfzpsxWiC7hcGXzM2W+bjlQU2rGiMCI3wlhTcJQRKiJ mL8oazrSEK2zSMtIBIbzTMuG5Uv9u4zUyqVHU5x9zpkJBuecIcip2i4n0zaihSvO/kzg 5nWQIC0WDrCqz+tLKP2W1Hl+xCh+q+oP0USzLxbfvENUzo2FAXwqO99QTHEsKehMKpcq hhhUuT4V5hEex0dxwP6+8tS50dLFClsG2eO5wKkXAEPJbvbigiNx+xoiB4uQDA521W8O v/ze79zq+oIlLADWStkhKLcnwSH0bJtKS08TZCte1mvodBRIq26moOEjt6582VIKyzf5 vmag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769153218; x=1769758018; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:feedback-id:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cpNcbqq3QKYz3lgJbaD3XSigUERyy/+zoCPLiX3NuWs=; b=ip2KELDWL/vhSfOAzSawcaiLIncvFQqu4ZfgBRAQpFyhjRpOKsfM/dXPDlGb5JUqwo 8aCVMH/d414eASD+J4TExXJVFkj04azCSPmFn8zEghY5vT4TynPoRAcSh3WMdVnFpq3I OfqDEugQUDxWrmP7hOeFhUigwadLkPwk1XPMnudW2Mk+ObwE144vcyB7S/ApxfbXbpBm kU0fov5EZoureRTNyRgoxJm9aJnKfeW3s3Qk9TL6V4rJ3iXIbN0qgsvBo6yj2iHx/d/d 3VMJltCY2bOj8y1Gv3fxDUmaVbL4YFtwprAsq/3OSTw0limuO/N2PDB2Oeg8nSS/d5oH a1+Q== X-Forwarded-Encrypted: i=1; AJvYcCX4UjjWuee1UxdlYRA3uhA4B9a+btyu3G5dFB8OR3MLe+eo7LL8UBmEi/SpouQgYQQS24zJogka+gPeQJk=@vger.kernel.org X-Gm-Message-State: AOJu0YzBoG//23L9uDwJu1z2p1OS78FESkSzEMwjcMXdIV1rINf1sVMd SJw3cecn/RHpsNfexiLv0GQCs2GUBSmHyR8YvrUgzvzzJH8Koq2MFwuVRT+HrQ== X-Gm-Gg: AZuq6aKECLyd3Ubpi6itj9Cn30yGdEgkdaq107/b/2fqSdQ/keg5LC+v+JidBhxBDZg kHjA0O2KuPE3kNkglORT8u5b5tyU72BMkUNcgBtigH/uoUwBErz7WhiU0fvL4KcoaokztfabNYe HGtXR2DVuV2bI6f6rzAsaMreL/Hg1MZrORgHKChZe80AD9VPFCWpEH++JmnrdM4tVWRjr3dKyTM Vn9aMiphzmahEdcI8gKNi9u5E/6ZBMnnCYxUtZEU50QKDalbsc+z2Prr19apMhNGM11BU6bE0bI 0syHlkkL14qQQNjiI0Ujwo0I3d76bxv1gFUVaQbuVP9OxtZs3tRffcdsDyKuKjzof9yq4dWuMdR 3C7XhnCeYbXCQ0UyNuoIFg3/3sF5U7I5g2t5RdB7ffeGbU6N+e5p73XRcNjzspNGcMrih7bgJhH 6YV9Zt9yptmppSIZG2yW+n0oYql8Em2+tdjvaTktjYNwkc4Nps0MoMxWWRR/P82dRrhEHN6Kcmp DSbpoQDFsQsfeueSh5W8l/IbA== X-Received: by 2002:ac8:5a8a:0:b0:4f1:ab28:d9f6 with SMTP id d75a77b69052e-502f7725200mr27683781cf.26.1769147688575; Thu, 22 Jan 2026 21:54:48 -0800 (PST) Received: from fauth-a1-smtp.messagingengine.com (fauth-a1-smtp.messagingengine.com. [103.168.172.200]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-502f7f8702fsm9798031cf.28.2026.01.22.21.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 21:54:48 -0800 (PST) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfauth.phl.internal (Postfix) with ESMTP id 6D9CDF40068; Fri, 23 Jan 2026 00:54:47 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Fri, 23 Jan 2026 00:54:47 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddugeekvdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrghtth gvrhhnpefhtedvgfdtueekvdekieetieetjeeihedvteehuddujedvkedtkeefgedvvdeh tdenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhprghuthhhphgv rhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsghoqhhunhdrfh gvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgvpdhnsggprhgtphhtthho pedvjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprhhushhtqdhfohhrqdhlih hnuhigsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgv rhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhgtuhesvhhgvg hrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehojhgvuggrsehkvghrnhgvlhdrohhr ghdprhgtphhtthhopehgrghrhiesghgrrhihghhuohdrnhgvthdprhgtphhtthhopegsjh horhhnfegpghhhsehprhhothhonhhmrghilhdrtghomhdprhgtphhtthhopehlohhsshhi nheskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprgdrhhhinhgusghorhhgsehkvghrnh gvlhdrohhrghdprhgtphhtthhopegrlhhitggvrhihhhhlsehgohhoghhlvgdrtghomh X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Jan 2026 00:54:46 -0500 (EST) Date: Thu, 22 Jan 2026 21:54:45 -0800 From: Boqun Feng To: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org Cc: Miguel Ojeda , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Will Deacon , Peter Zijlstra , Mark Rutland , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Uladzislau Rezki , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , FUJITA Tomonori , Dirk Behme Subject: Re: [PATCH v2 0/2] rust: sync: Atomic pointer Message-ID: References: <20260120140503.62804-1-boqun.feng@gmail.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=us-ascii Content-Disposition: inline In-Reply-To: <20260120140503.62804-1-boqun.feng@gmail.com> On Tue, Jan 20, 2026 at 10:05:01PM +0800, Boqun Feng wrote: > I've already queued the first 3 patches in v1, but comments on them are > welcome as well. The RCU pointer patch is not included in this v2 since > there is not much update and I'm still hoping to get some reviews on > that for another respin. > > Changes since v1: > > * Add a clarification patch of CONFIG_ARCH_SUPPORTS_ATOMIC_RMW as > suggested by Dirk and Benno. > > * Add support for Atomic<*const T>. > > v1: https://lore.kernel.org/rust-for-linux/20260117122243.24404-1-boqun.feng@gmail.com/ > Queued for v7.1, thanks you all! Regards, Boqun > Regards, > Boqun > > > Boqun Feng (2): > rust: sync: atomic: Clarify the need of > CONFIG_ARCH_SUPPORTS_ATOMIC_RMW > rust: sync: atomic: Add Atomic<*{mut,const} T> support > > rust/helpers/atomic_ext.c | 3 ++ > rust/kernel/sync/atomic.rs | 12 +++++++- > rust/kernel/sync/atomic/internal.rs | 37 ++++++++++++++-------- > rust/kernel/sync/atomic/predefine.rs | 46 ++++++++++++++++++++++++++++ > 4 files changed, 85 insertions(+), 13 deletions(-) > > -- > 2.51.0 >