From nobody Tue Sep 29 13:20:31 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 640BB46D577; Fri, 7 Aug 2026 16:05:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786118749; cv=none; b=g47rTL5UGnrQM0S+OiSgpEK1POihqevMgeTkmkHKYTn1oDNnDYr1zJIBe0fjatjU6lfLuCZr3Xse999np9xhzqZnkWEi1snDg6S7VAPHwBk7I02Nvi0hu5hRLL1Pokxmw71fP/W3JWoxLCW5Ej0dC4TJfvBmefUS9m94j8Wbrwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786118749; c=relaxed/simple; bh=ZzbY3xVeAmVMISOZoA6YGhIikPvaKm6RiiPhQ7W7tJ0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=KmEeMzaZXBKzEkEOkLNVnBj9a+UlWSQwhb7LTfd9UhznEM4OcrIjg7iRXMo+r73qdYcxYU/KGDODH/Y2/8IJmUuVbWqJbaxUFwmdiOPrP/1Zk/IBOZ9KzjyNX2n3i7YUkVAadji62dS/LJpkoIgMKPrDsgc3ybRWKCFu9vK/Fac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iWUaplaJ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RsOAe3Wo; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iWUaplaJ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RsOAe3Wo" Date: Fri, 07 Aug 2026 16:05:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786118746; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ljZFQyyuJNZLZhvomoxBcSfLI9vP29PBxwLgLFIMeCE=; b=iWUaplaJKKb/dyRf81V/HGrK0E7T7y2W+Q7nCdGdNQcabsJi9kPwOhRCOK0DE0mLdL5iQR HG4ciZnJjwNyFv0VqYuWPYf968n0yiIeWSza6QeHiPpRzRc061v3Frp2ti7KldUsbJulLy IgKnZQ0nzzpze3bxgOUEFwWS8wflFXZvPiegPlrwxO3hRYemacq9uiqg88qUotORg38NR3 gnLMs2gXCiaUsuSKBulH96hlw3fmlI86iUALXySgzqU77ty5oHXMBE76QyupkUmNIpNKNZ dktMUZFGedpRQ3CO96S6axI+8eECIUjy34llG9/5CnJqFCXvZQ8cE8bpXi6oYQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786118746; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ljZFQyyuJNZLZhvomoxBcSfLI9vP29PBxwLgLFIMeCE=; b=RsOAe3Woe1LTUZQCLu4s83hJ/vumQNxJuiRIAJxv/scDDSRAPq/ETGIFTroIFUiaAao/mD F1dOPUNAmaZFV0Aw== From: "tip-bot2 for Philipp Stanner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] rust: revocable: Use safe synchronize_rcu() abstraction Cc: Philipp Stanner , work@onurozkan.dev, Danilo Krummrich , Gary Guo , Boqun Feng , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260624150704.1504001-4-phasta@kernel.org> References: <20260624150704.1504001-4-phasta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178611874436.708.11445557319136729587.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: 042278f5fa9e681420ab486d6cbf464e26667461 Gitweb: https://git.kernel.org/tip/042278f5fa9e681420ab486d6cbf464e2= 6667461 Author: Philipp Stanner AuthorDate: Wed, 24 Jun 2026 17:07:03 +02:00 Committer: Boqun Feng CommitterDate: Tue, 04 Aug 2026 05:52:53 -07:00 rust: revocable: Use safe synchronize_rcu() abstraction We now have a safe wrapper for the foreign function synchronize_rcu(). Use it in revocable.rs. Signed-off-by: Philipp Stanner Reviewed-by: Onur =C3=96zkan Reviewed-by: Danilo Krummrich Reviewed-by: Gary Guo Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20260624150704.1504001-4-phasta@kernel.org --- rust/kernel/revocable.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rust/kernel/revocable.rs b/rust/kernel/revocable.rs index 0f4ae67..f539603 100644 --- a/rust/kernel/revocable.rs +++ b/rust/kernel/revocable.rs @@ -7,7 +7,11 @@ =20 use pin_init::Wrapper; =20 -use crate::{bindings, prelude::*, sync::rcu, types::Opaque}; +use crate::{ + prelude::*, + sync::rcu, + types::Opaque, // +}; use core::{ marker::PhantomData, ops::Deref, @@ -161,8 +165,7 @@ impl Revocable { =20 if revoke { if SYNC { - // SAFETY: Just an FFI call, there are no further requirem= ents. - unsafe { bindings::synchronize_rcu() }; + rcu::synchronize_rcu(); } =20 // SAFETY: We know `self.data` is valid because only one CPU c= an succeed the