Whamcloud - gitweb
- let show_task() to show backtrack for currently running process (for LBUG)
authoralex <alex>
Mon, 20 Jun 2005 13:12:16 +0000 (13:12 +0000)
committeralex <alex>
Mon, 20 Jun 2005 13:12:16 +0000 (13:12 +0000)
lustre/kernel_patches/patches/export-show_task-2.6-vanilla.patch

index 81f62ff..237e37d 100644 (file)
@@ -1,8 +1,8 @@
-Index: linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c
+Index: linux-2.6.10/kernel/sched.c
 ===================================================================
---- linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091.orig/kernel/sched.c  2004-10-22 15:25:05.000000000 -0400
-+++ linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c       2004-10-22 15:39:18.000000000 -0400
-@@ -3147,7 +3147,7 @@
+--- linux-2.6.10.orig/kernel/sched.c   2005-05-31 23:40:49.000000000 +0400
++++ linux-2.6.10/kernel/sched.c        2005-06-20 16:50:04.000000000 +0400
+@@ -3546,7 +3546,7 @@
        return list_entry(p->sibling.next,struct task_struct,sibling);
  }
  
@@ -11,8 +11,12 @@ Index: linux-2.6.5-SLES9_SP1_BRANCH_2004102113353091/kernel/sched.c
  {
        task_t *relative;
        unsigned state;
-@@ -3200,6 +3200,7 @@
-       if (state != TASK_RUNNING)
+@@ -3596,9 +3596,10 @@
+       else
+               printk(" (NOTLB)\n");
+-      if (state != TASK_RUNNING)
++      if (state != TASK_RUNNING || p == current)
                show_stack(p, NULL);
  }
 +EXPORT_SYMBOL(show_task);