Re: [PATCH 1/4] sched/idle: Fix missing need_resched() check after rcu_idle_enter()

From: Peter Zijlstra
Date: Wed Jan 06 2021 - 05:37:15 EST


On Tue, Jan 05, 2021 at 01:57:22PM +0100, Frederic Weisbecker wrote:

> > Something like the below, combined with a fixup for all callers (which
> > the compiler will help us find thanks to __must_check).
>
> Right, I just need to make sure that the wake up is local as the kthread
> awaken can be queued anywhere. But a simple need_resched() check after the
> wake up should be fine to get that.

Duh, yes. Clearly I'm having startup problems after the holidays ;-)