[GIT PULL] scheduler fix

Ingo Molnar posted 1 patch 1 year, 4 months ago
There is a newer version of this series
include/linux/sched.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[GIT PULL] scheduler fix
Posted by Ingo Molnar 1 year, 4 months ago
Linus,

Please pull the latest sched/urgent Git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2024-12-29

   # HEAD: f718faf3940e95d5d34af9041f279f598396ab7d freezer, sched: Report frozen tasks as 'D' instead of 'R'

Fix a procfs task state reporting regression when freezing sleeping tasks.

 Thanks,

	Ingo

------------------>
Chen Ridong (1):
      freezer, sched: Report frozen tasks as 'D' instead of 'R'


 include/linux/sched.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 66b311fbd5d6..64934e0830af 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1637,8 +1637,9 @@ static inline unsigned int __task_state_index(unsigned int tsk_state,
 	 * We're lying here, but rather than expose a completely new task state
 	 * to userspace, we can make this appear as if the task has gone through
 	 * a regular rt_mutex_lock() call.
+	 * Report frozen tasks as uninterruptible.
 	 */
-	if (tsk_state & TASK_RTLOCK_WAIT)
+	if ((tsk_state & TASK_RTLOCK_WAIT) || (tsk_state & TASK_FROZEN))
 		state = TASK_UNINTERRUPTIBLE;
 
 	return fls(state);
Re: [GIT PULL] scheduler fix
Posted by pr-tracker-bot@kernel.org 1 year, 4 months ago
The pull request you sent on Sun, 29 Dec 2024 10:16:28 +0100:

> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2024-12-29

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/4099a71718b056d16af5ba095c91016c3b107862

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html