lkml.org 
[lkml]   [2022]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 07/14] cred: Move call_rcu() to call_rcu_lazy()
Date
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@joelfernandes.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
\
 
 \ /
  Last update: 2022-08-19 22:51    [W:0.146 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site