]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/sched.h
sched/debug: Add explicit TASK_IDLE printing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 Sep 2017 16:30:40 +0000 (18:30 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Sep 2017 09:02:56 +0000 (11:02 +0200)
commit06eb61844d841d0032a9950ce7f8e783ee49c0d0
tree2c1db5ade5acc687e67f37d69e711bf0470df532
parent5f6ad26ea353fdf3dad2328052cbee49e0b9c5b4
sched/debug: Add explicit TASK_IDLE printing

Markus reported that kthreads that idle using TASK_IDLE instead of
TASK_INTERRUPTIBLE are reported in as TASK_UNINTERRUPTIBLE and things
like htop mark those red.

This is undesirable, so add an explicit state for TASK_IDLE.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/proc/array.c
include/linux/sched.h
include/trace/events/sched.h