From nobody Fri Oct 2 09:19:25 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 3E2C839B975; Mon, 3 Aug 2026 08:15:25 +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=1785744926; cv=none; b=OYMzDhVgkrxAiphKPKRbLj/l006df2PIfL3rJ6hC034xHcclKMhGw0g8LFczsHIsB9bK3ngmZUv+XEayHF7kldUnMggsqjdnI3uPnjHBfImsNyDE3e4ciLCI1rJXTE24wW5ZRqfoQV3FyVe9RDOtdb6KjxML24wEDAFrOSh6N+w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785744926; c=relaxed/simple; bh=zyLn6DHwzp1pZ2X03xsYQjCN8QBHD1mJLOXtRpla3w0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=fylVJKQQUVlEMr5i0JiIwPsCI7hJdqO+/b6XRkrC/PoMcyf6qtzrDRu0OkeLbu0x5QVQFT/J0C4b5KaJKyacJhyCCSd9e2XEW0xddlQughPVyRC4TSZs0RSDfZWC50rP86NTLWtyNnfVSMdMhVFl7vIuCpy3kmI10BTQ3+G2GNc= 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=1lh2/tAQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GV0uoO4Y; 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="1lh2/tAQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GV0uoO4Y" Date: Mon, 03 Aug 2026 08:15:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1785744923; 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=A3vf56NGmTHivB6ovUwJRPna8SJoywY5aIxVYGh3WuI=; b=1lh2/tAQWjgWCkMyHjQMEZSFeC+Wa7zCmmkTq6N0f5CUfXXl8cWo3HpxMha44UgOdwf9aO 4tz7QC2giASIpgnciH9plZwn8bqN1lHvV4IxBkntW1pG5JwtZynW85Z/smq2OcQUhUOmQQ xEd8grorYGlOo1BWXB4FsKccwnRylKNXBtQu9eOBQGdIo92HJaOBPnZbd7OvG6Ix5lzQzD XzWd2QAVVSB3plGRQNwzYj8Gt6DqheloaYwTdN7Z0EwW6/dwKFXtLNv7NmHW0G24DeiRv8 /E6oMmFMQ/GsKbn9trTNaMZBUghmGxzClh3f86iWXJvAaMcBhHcVw714iyhdNw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1785744923; 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=A3vf56NGmTHivB6ovUwJRPna8SJoywY5aIxVYGh3WuI=; b=GV0uoO4YgRsqN8NhnkmL4K82obq5fuMdLRhDwvuY0dM39tgQLTAgv+Gre87yxIAdFeE2+U 8Jrlp1Z8vfKTfCCQ== From: "tip-bot2 for Puranjay Mohan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] srcu: Add lock guard for srcu_fast_updown flavor Cc: Puranjay Mohan , "Peter Zijlstra (Intel)" , "Paul E. McKenney" , Oleg Nesterov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260706172744.3920417-2-puranjay@kernel.org> References: <20260706172744.3920417-2-puranjay@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178574492184.1210945.15534598652350262804.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 perf/core branch of tip: Commit-ID: fa8a2d55139fb2e0b09e68c34b730adac92d18d6 Gitweb: https://git.kernel.org/tip/fa8a2d55139fb2e0b09e68c34b730adac= 92d18d6 Author: Puranjay Mohan AuthorDate: Mon, 06 Jul 2026 10:27:41 -07:00 Committer: Peter Zijlstra CommitterDate: Mon, 03 Aug 2026 10:09:08 +02:00 srcu: Add lock guard for srcu_fast_updown flavor Add a guard(srcu_fast_updown) definition for scoped SRCU-fast-updown read-side critical sections, following the existing pattern of guard(srcu) and guard(srcu_fast). Signed-off-by: Puranjay Mohan Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Paul E. McKenney Reviewed-by: Oleg Nesterov Link: https://patch.msgid.link/20260706172744.3920417-2-puranjay@kernel.org --- include/linux/srcu.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/srcu.h b/include/linux/srcu.h index a54ce9e..72c86d3 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h @@ -638,4 +638,11 @@ DEFINE_LOCK_GUARD_1(srcu_fast_notrace, struct srcu_str= uct, DECLARE_LOCK_GUARD_1_ATTRS(srcu_fast_notrace, __acquires_shared(_T), __rel= eases_shared(*(struct srcu_struct **)_T)) #define class_srcu_fast_notrace_constructor(_T) WITH_LOCK_GUARD_1_ATTRS(sr= cu_fast_notrace, _T) =20 +DEFINE_LOCK_GUARD_1(srcu_fast_updown, struct srcu_struct, + _T->scp =3D srcu_read_lock_fast_updown(_T->lock), + srcu_read_unlock_fast_updown(_T->lock, _T->scp), + struct srcu_ctr __percpu *scp) +DECLARE_LOCK_GUARD_1_ATTRS(srcu_fast_updown, __acquires_shared(_T), __rele= ases_shared(*(struct srcu_struct **)_T)) +#define class_srcu_fast_updown_constructor(_T) WITH_LOCK_GUARD_1_ATTRS(src= u_fast_updown, _T) + #endif