]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita54e4142868732f6932a74583383f3292ad47a28
tree6a0fff82fb0b537c80adcbef5d0c0c26bdbe2d7c
parent7a3f5a2270e4a5a4d2b2d55d16a2bd7855170a0e
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