Skip to content

Commit 4099a71

Browse files
committed
Merge tag 'sched-urgent-2024-12-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Ingo Molnar: "Fix a procfs task state reporting regression when freezing sleeping tasks" * tag 'sched-urgent-2024-12-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: freezer, sched: Report frozen tasks as 'D' instead of 'R'
2 parents 6cbc4b2 + f718faf commit 4099a71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/sched.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,8 +1637,9 @@ static inline unsigned int __task_state_index(unsigned int tsk_state,
16371637
* We're lying here, but rather than expose a completely new task state
16381638
* to userspace, we can make this appear as if the task has gone through
16391639
* a regular rt_mutex_lock() call.
1640+
* Report frozen tasks as uninterruptible.
16401641
*/
1641-
if (tsk_state & TASK_RTLOCK_WAIT)
1642+
if ((tsk_state & TASK_RTLOCK_WAIT) || (tsk_state & TASK_FROZEN))
16421643
state = TASK_UNINTERRUPTIBLE;
16431644

16441645
return fls(state);

0 commit comments

Comments
 (0)