Skip to content
Snippets Groups Projects
Commit 5aec788a authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

sched: Fix TASK_state comparisons


Task state is fundamentally a bitmask; direct comparisons are probably
not working as intended. Specifically the normal wait-state have
a number of possible modifiers:

  TASK_UNINTERRUPTIBLE:	TASK_WAKEKILL, TASK_NOLOAD, TASK_FREEZABLE
  TASK_INTERRUPTIBLE:   TASK_FREEZABLE

Specifically, the addition of TASK_FREEZABLE wrecked
__wait_is_interruptible(). This however led to an audit of direct
comparisons yielding the rest of the changes.

Fixes: f5d39b02 ("freezer,sched: Rewrite core freezer logic")
Reported-by: default avatarChristian Borntraeger <borntraeger@linux.ibm.com>
Debugged-by: default avatarChristian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarChristian Borntraeger <borntraeger@linux.ibm.com>
parent 7e9518ba
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment