]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Teach dequeue_task() about special task states
authorPeter Zijlstra <peterz@infradead.org>
Mon, 1 Jul 2024 19:38:11 +0000 (21:38 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 17 Aug 2024 09:06:44 +0000 (11:06 +0200)
commite1459a50ba31831efdfc35278023d959e4ba775b
treefab2d16fe841769e869950db14649853bc4f93ef
parenta1c446611e31ca5363d4db51e398271da1dce0af
sched: Teach dequeue_task() about special task states

Since special task states must not suffer spurious wakeups, and the
proposed delayed dequeue can cause exactly these (under some boundary
conditions), propagate this knowledge into dequeue_task() such that it
can do the right thing.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Tested-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lkml.kernel.org/r/20240727105030.110439521@infradead.org
kernel/sched/core.c
kernel/sched/sched.h