diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-14 18:45:08 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-19 22:04:25 -0400 |
commit | 3d84522f7f858684b36bd573e926302921da272d (patch) | |
tree | 6ae4adda4fbc3eb677731377a4b84821a1564889 /init/main.c | |
parent | 1d7f9e1013ef3a9e3ee4803520ed83c3587e2c11 (diff) |
rcu: Switch kvfree_rcu() to new rcu_pendingrcu_pending
This nets us a slight performance increase, and converts to common
code.
Todo - re-add the shrinker, so that memory reclaim can free expired
objects and expedite a grace period when necessary.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index 206acdde51f5..a3f0fd6ec3da 100644 --- a/init/main.c +++ b/init/main.c @@ -43,6 +43,7 @@ #include <linux/profile.h> #include <linux/kfence.h> #include <linux/rcupdate.h> +#include <linux/rcu_pending.h> #include <linux/srcu.h> #include <linux/moduleparam.h> #include <linux/kallsyms.h> @@ -993,6 +994,7 @@ void start_kernel(void) workqueue_init_early(); rcu_init(); + kvfree_rcu_pending_init(); /* Trace events are available after this */ trace_init(); |