]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix more TASK_state comparisons
authorPeter Zijlstra <peterz@infradead.org>
Fri, 30 Sep 2022 14:39:46 +0000 (16:39 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 30 Sep 2022 14:50:39 +0000 (16:50 +0200)
commitbbb82e3188e47734924a0803ff5d36128620c3ca
tree41a08e9ee93e7a69233878066f2f7cb5595bce35
parente285e6008247bc577220b458b27fb3064889825e
sched: Fix more TASK_state comparisons

Boris reported hung_task splats after commit e285e6008247 ("sched: Fix
TASK_state comparisons"). Upon closer consideration of that change it
doesn't only exclude TASK_KILLABLE, but also TASK_IDLE.

Update the comment to reflect this fact and add an additional
TASK_NOLOAD test to exclude them.

Additionally, remove the TASK_FREEZABLE early exit from
check_hung_task(), a freezable task is not a frozen task.

Fixes: e285e6008247 ("sched: Fix TASK_state comparisons")
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Borislav Petkov <bp@alien8.de>
kernel/hung_task.c