diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-17 14:47:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-10-06 06:47:08 -0400 |
commit | 510f5acc4f4fb07f3f075900dc468d6e380beff6 (patch) | |
tree | 4ecbc827da461c0a5c2ea41480ea42804fc63440 /kernel | |
parent | 1c83437e80186832a9a48dbb6b8868d28e40e562 (diff) |
sched: Don't use tasklist_lock for debug prints
Avoid taking locks from debug prints, this avoids latencies on -rt,
and improves reliability of the debug code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index ce9a9e7db116..24637c782002 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6021,7 +6021,7 @@ void show_state_filter(unsigned long state_filter) | |||
6021 | printk(KERN_INFO | 6021 | printk(KERN_INFO |
6022 | " task PC stack pid father\n"); | 6022 | " task PC stack pid father\n"); |
6023 | #endif | 6023 | #endif |
6024 | read_lock(&tasklist_lock); | 6024 | rcu_read_lock(); |
6025 | do_each_thread(g, p) { | 6025 | do_each_thread(g, p) { |
6026 | /* | 6026 | /* |
6027 | * reset the NMI-timeout, listing all files on a slow | 6027 | * reset the NMI-timeout, listing all files on a slow |
@@ -6037,7 +6037,7 @@ void show_state_filter(unsigned long state_filter) | |||
6037 | #ifdef CONFIG_SCHED_DEBUG | 6037 | #ifdef CONFIG_SCHED_DEBUG |
6038 | sysrq_sched_debug_show(); | 6038 | sysrq_sched_debug_show(); |
6039 | #endif | 6039 | #endif |
6040 | read_unlock(&tasklist_lock); | 6040 | rcu_read_unlock(); |
6041 | /* | 6041 | /* |
6042 | * Only show locks if all tasks are dumped: | 6042 | * Only show locks if all tasks are dumped: |
6043 | */ | 6043 | */ |