Re: [RFC] mm, slab: reschedule cache_reap() on the same CPU

From: Tejun Heo
Date: Tue Apr 10 2018 - 10:17:17 EST


On Tue, Apr 10, 2018 at 09:12:08AM -0500, Christopher Lameter wrote:
> > @@ -4074,7 +4086,8 @@ static void cache_reap(struct work_struct *w)
> > next_reap_node();
> > out:
> > /* Set up the next iteration */
> > - schedule_delayed_work(work, round_jiffies_relative(REAPTIMEOUT_AC));
> > + schedule_delayed_work_on(reap_work->cpu, work,
> > + round_jiffies_relative(REAPTIMEOUT_AC));
>
> schedule_delayed_work_on(smp_processor_id(), work, round_jiffies_relative(REAPTIMEOUT_AC));
>
> instead all of the other changes?

Yeah, that'd make more sense.

Thanks.

--
tejun