From nobody Tue Sep 29 12:02:21 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 7830739A7F7; Fri, 7 Aug 2026 16:05:46 +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=1786118747; cv=none; b=Vv/jwqIn3o0hqsMzPAKWMoOGxoUCI8D6zSjNfziSMcilotbN8N1D8UQ9AB/RQHwjC10JUexuMWrIk1b6qdD1SN7nvxN21RI8ubSYW6Zw7frqGR7+eQSJ2lj9oB7WQ+dA380Y671f12MC2FIzADZdeh9KdC9MlLaydUYF6Yfe7JU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786118747; c=relaxed/simple; bh=Sm8uSZYdyAmke96yygPT4BNWpEmpfhygMgQCYsDhOhY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=aSoFUEWU28XTQo4AFBEzoFS45tXRDcsu/Q4PzUPokHsx2J9pfWwKBOfAv9FCpAAFvxmNxjKCoLIrxGTipohsAi5AsqNfuVfDi3c7V5uqp7npCMVnU3Sg9ARnR3abKszjlSr507qx5wdBqDV+tT+6l4RWpaNm0WekciaMYIclaYg= 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=w79FNDLW; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Qzh07F4E; 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="w79FNDLW"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Qzh07F4E" Date: Fri, 07 Aug 2026 16:05:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786118744; 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=opOwcR8dAr0/YqyFVev34Z6CEV4m0KRjmY2Nuo9OtK4=; b=w79FNDLWg50c8FB3lJr031/RN8yzqy4PJs8P7HCtKb+rZXepeOUHK/qaV6Aslv0jAzUdo5 J4nsgKYHDrUSifRGvyKk9li2soLyY8R4oLwUzZP7dFn3mhta06mUSbdI5JbsVUpKBmaLbx qmlP/v5ehD+j7U0ZcXVmEnwUGW5NrT8KTP47+LpMZY9IS6CrCn3GPWKRiGZ4qcgESyCabr tigTrB+70m0oi33JlAFplRB5ryBxIzs2zqU7Jd9HrNjwZl6GiKaxeUSM8w847mpZRMi365 hviu/RNScgFrd3HgBbkcBCkCeAXgWlmDBMv8irggs/SUzdWzAt0kca6LTJDl3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786118744; 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=opOwcR8dAr0/YqyFVev34Z6CEV4m0KRjmY2Nuo9OtK4=; b=Qzh07F4EuTKGr1mHtfcFWywg+VUJknjQpxVXiPTQJ4DbWfXemOWXQi6Yu050LyYX6iE+el NYWMBnng29xBnsBw== 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: sync: Use safe synchronize_rcu() abstraction in poll Cc: Philipp Stanner , Alice Ryhl , work@onurozkan.dev, Danilo Krummrich , Gary Guo , Boqun Feng , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260624150704.1504001-5-phasta@kernel.org> References: <20260624150704.1504001-5-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: <178611874297.708.6753410342751159277.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: 47c3367ff096e66f614ed3cdadece26ffc04b5e8 Gitweb: https://git.kernel.org/tip/47c3367ff096e66f614ed3cdadece26ff= c04b5e8 Author: Philipp Stanner AuthorDate: Wed, 24 Jun 2026 17:07:04 +02:00 Committer: Boqun Feng CommitterDate: Tue, 04 Aug 2026 05:52:54 -07:00 rust: sync: Use safe synchronize_rcu() abstraction in poll We now have a safe wrapper for the foreign function synchronize_rcu(). Use it in poll.rs. Signed-off-by: Philipp Stanner Reviewed-by: Alice Ryhl 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-5-phasta@kernel.org --- rust/kernel/sync/poll.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rust/kernel/sync/poll.rs b/rust/kernel/sync/poll.rs index 0ec985d..5aa0ce9 100644 --- a/rust/kernel/sync/poll.rs +++ b/rust/kernel/sync/poll.rs @@ -8,7 +8,11 @@ use crate::{ bindings, fs::File, prelude::*, - sync::{CondVar, LockClassKey}, + sync::{ + rcu::synchronize_rcu, + CondVar, + LockClassKey, // + }, // }; use core::{marker::PhantomData, ops::Deref}; =20 @@ -99,8 +103,6 @@ impl PinnedDrop for PollCondVar { unsafe { bindings::__wake_up_pollfree(self.inner.wait_queue_head.g= et()) }; =20 // Wait for epoll items to be properly removed. - // - // SAFETY: Just an FFI call. - unsafe { bindings::synchronize_rcu() }; + synchronize_rcu(); } }