[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220819204857.3066329-8-joel@joelfernandes.org>
Date: Fri, 19 Aug 2022 20:48:50 +0000
From: "Joel Fernandes (Google)" <joel@...lfernandes.org>
To: linux-kernel@...r.kernel.org
Cc: "Joel Fernandes (Google)" <joel@...lfernandes.org>,
paulmck@...nel.org,
Rushikesh S Kadam <rushikesh.s.kadam@...el.com>,
"Uladzislau Rezki (Sony)" <urezki@...il.com>,
Neeraj upadhyay <neeraj.iitr10@...il.com>,
Frederic Weisbecker <frederic@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>,
rcu <rcu@...r.kernel.org>, vineeth@...byteword.org
Subject: [PATCH v4 07/14] cred: Move call_rcu() to call_rcu_lazy()
This is required to prevent callbacks triggering RCU machinery too
quickly and too often, which adds more power to the system.
Signed-off-by: Joel Fernandes (Google) <joel@...lfernandes.org>
---
kernel/cred.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cred.c b/kernel/cred.c
index e10c15f51c1f..c7cb2e3ac73a 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -150,7 +150,7 @@ void __put_cred(struct cred *cred)
if (cred->non_rcu)
put_cred_rcu(&cred->rcu);
else
- call_rcu(&cred->rcu, put_cred_rcu);
+ call_rcu_lazy(&cred->rcu, put_cred_rcu);
}
EXPORT_SYMBOL(__put_cred);
--
2.37.2.609.g9ff673ca1a-goog
Powered by blists - more mailing lists