aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2022-09-27 19:02:34 +0000
committerPeter Zijlstra <[email protected]>2022-09-28 08:00:16 +0000
commit5aec788aeb8eb74282b75ac1b317beb0fbb69a42 (patch)
tree0b191d9fffa590cbca17596e8c8c1147a42d14dc /net/unix/af_unix.c
parentsched/fair: Move call to list_last_entry() in detach_tasks (diff)
downloadkernel-5aec788aeb8eb74282b75ac1b317beb0fbb69a42.tar.gz
kernel-5aec788aeb8eb74282b75ac1b317beb0fbb69a42.zip
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: f5d39b020809 ("freezer,sched: Rewrite core freezer logic") Reported-by: Christian Borntraeger <[email protected]> Debugged-by: Christian Borntraeger <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions