-
- Downloads
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:Christian Borntraeger <borntraeger@linux.ibm.com> Debugged-by:
Christian Borntraeger <borntraeger@linux.ibm.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by:
Christian Borntraeger <borntraeger@linux.ibm.com>
Loading
Please register or sign in to comment