From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AC28F1EEA5F; Wed, 23 Jul 2025 20:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753302484; cv=none; b=fHV1GUSLM5RsB+O+GNxk46pFB1rcoDlGH6pYpd8BsyK72aTnhucDFVn92L9QOB6k90qOib2cgwYX1XW6vZWosfQ8WMSDg8wGewf8QBDWyKBeSYSGj+5VTJAxGrLv87TP6UF1L4ERKLewkCKydSJejkjNJDlH10yAaC6lsY5DvgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753302484; c=relaxed/simple; bh=Ta9aIor4BQit4OnpAbqvXNX0/P6L2jwLAeMWjUv0sC4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bfTHId27DAcS9MBkMFpMfVVf/TEc1tBmluD/m3LRmJX0aig6/Psl1zacIBzVngu+8dK0PeeJWtMOYkSjcmv3H7kNlfp2zch5K9muMa7WkiCrhyR3qnb/4pRkZ5oXDZO3EQCpFKc5wGxoSwINYk0JkD+IP5BMV9747doEZ5hNpls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ihYGrKPM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ihYGrKPM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61674C4CEF4; Wed, 23 Jul 2025 20:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753302484; bh=Ta9aIor4BQit4OnpAbqvXNX0/P6L2jwLAeMWjUv0sC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihYGrKPMCy5cws+s+fpf18WAvJTd9r/nB9FO7xBwudYl6By+Of5NlBdDmvZUB6Fbk 5ado4AxIN1gcnCG/kweyRmJKz5y3825rIXXMEY+PRtiTdltzHrJsAkzJG2bZZKjG1z nHfVtF/eWbEa3ZLrTZEQAEPWa8fWVbNW4BIvGz1YmEuiqdgV4Xwsujk9bzo3utXWLB gYOVpqcZSZsYFXOUumaaosiUVMkphO+K/rg8F3c48V21Si/uTI3r+OgEsWFUQsdDbe N5VuhCJsSbUAALPh3QcNp1J/3blr4woLIfyRbEryvufNQ0ypMU3Zez3gc7VfDYvhAI k/jSxgPkar45Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0B5F2CE0AD7; Wed, 23 Jul 2025 13:28:04 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Joel Fernandes , Mathieu Desnoyers , Sebastian Andrzej Siewior , bpf@vger.kernel.org Subject: [PATCH v4 3/6] srcu: Add guards for notrace variants of SRCU-fast readers Date: Wed, 23 Jul 2025 13:27:57 -0700 Message-Id: <20250723202800.2094614-3-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <45397494-544e-41c0-bf48-c66d213fce05@paulmck-laptop> References: <45397494-544e-41c0-bf48-c66d213fce05@paulmck-laptop> Precedence: bulk X-Mailing-List: rcu@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This adds the usual scoped_guard(srcu_fast_notrace, &my_srcu) and guard(srcu_fast_notrace)(&my_srcu). Signed-off-by: Paul E. McKenney Reviewed-by: Joel Fernandes Cc: Mathieu Desnoyers Cc: Steven Rostedt Cc: Sebastian Andrzej Siewior Cc: --- include/linux/srcu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/srcu.h b/include/linux/srcu.h index ec3b8e27d6c5a..1dc677bc9abca 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h @@ -516,4 +516,9 @@ DEFINE_LOCK_GUARD_1(srcu_fast, struct srcu_struct, srcu_read_unlock_fast(_T->lock, _T->scp), struct srcu_ctr __percpu *scp) +DEFINE_LOCK_GUARD_1(srcu_fast_notrace, struct srcu_struct, + _T->scp = srcu_read_lock_fast_notrace(_T->lock), + srcu_read_unlock_fast_notrace(_T->lock, _T->scp), + struct srcu_ctr __percpu *scp) + #endif -- 2.40.1