sched: Change wait_task_inactive()s match_state
authorPeter Zijlstra <peterz@infradead.org>
Mon, 22 Aug 2022 11:18:19 +0000 (13:18 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 7 Sep 2022 19:53:48 +0000 (21:53 +0200)
commit9204a97f7ae862fc8a3330ec8335917534c3fb63
tree6a0fff82fb0b537c80adcbef5d0c0c26bdbe2d7c
parent1fbcaa923ce2d7e6de17abd74fa076dc1e0be1a2
sched: Change wait_task_inactive()s match_state

Make wait_task_inactive()'s @match_state work like ttwu()'s @state.

That is, instead of an equal comparison, use it as a mask. This allows
matching multiple block conditions.

(removes the unlikely; it doesn't make sense how it's only part of the
condition)

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220822114648.856734578@infradead.org
kernel/sched/core.c