Whamcloud - gitweb
- no more flooding
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-show_task-2.6-vanilla.patch
1 Index: linux-2.6.10/kernel/sched.c
2 ===================================================================
3 --- linux-2.6.10.orig/kernel/sched.c    2005-05-31 23:40:49.000000000 +0400
4 +++ linux-2.6.10/kernel/sched.c 2005-06-20 16:50:04.000000000 +0400
5 @@ -3546,7 +3546,7 @@
6         return list_entry(p->sibling.next,struct task_struct,sibling);
7  }
8  
9 -static void show_task(task_t * p)
10 +void show_task(task_t * p)
11  {
12         task_t *relative;
13         unsigned state;
14 @@ -3596,9 +3596,10 @@
15         else
16                 printk(" (NOTLB)\n");
17  
18 -       if (state != TASK_RUNNING)
19 +       if (state != TASK_RUNNING || p == current)
20                 show_stack(p, NULL);
21  }
22 +EXPORT_SYMBOL(show_task);
23  
24  void show_state(void)
25  {