1 Export the show_task() function in order to get better process stacks.
2 It will also print the current process stack, which is useful.
4 This is a nice-to-have but not required for Lustre to work.
6 Index: linux-2.6/kernel/sched.c
7 ===================================================================
8 --- linux-2.6.orig/kernel/sched.c 2006-07-15 11:51:46.000000000 +0800
9 +++ linux-2.6/kernel/sched.c 2006-07-15 16:24:35.000000000 +0800
10 @@ -4652,7 +4652,7 @@ static inline struct task_struct *younge
12 static const char stat_nam[] = "RSDTtZX";
14 -static void show_task(struct task_struct *p)
15 +void show_task(struct task_struct *p)
17 struct task_struct *relative;
18 unsigned long free = 0;
19 @@ -4698,9 +4698,10 @@ static void show_task(struct task_struct
23 - if (state != TASK_RUNNING)
24 + if (state != TASK_RUNNING || p == current)
27 +EXPORT_SYMBOL(show_task);