Whamcloud - gitweb
- make HEAD from b_post_cmd3
[fs/lustre-release.git] / lustre / kernel_patches / patches / export-show_task-2.6-vanilla.patch
1 Index: linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c
2 ===================================================================
3 --- linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091.orig/kernel/sched.c   2004-10-22 15:25:05.000000000 -0400
4 +++ linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c        2004-10-22 15:39:18.000000000 -0400
5 @@ -3147,7 +3147,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 @@ -3200,9 +3200,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  {