]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - mm/slab.c
mm, slab: reschedule cache_reap() on the same CPU
[mirror_ubuntu-bionic-kernel.git] / mm / slab.c
index 4e51ef954026bd15e5bef41167459970976faab0..c511938a970016680f80a9029886710ccad0b2f0 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4076,7 +4076,8 @@ next:
        next_reap_node();
 out:
        /* Set up the next iteration */
-       schedule_delayed_work(work, round_jiffies_relative(REAPTIMEOUT_AC));
+       schedule_delayed_work_on(smp_processor_id(), work,
+                               round_jiffies_relative(REAPTIMEOUT_AC));
 }
 
 void get_slabinfo(struct kmem_cache *cachep, struct slabinfo *sinfo)