Whamcloud - gitweb
Branch b1_8
authorjohann <johann>
Fri, 24 Jul 2009 20:05:25 +0000 (20:05 +0000)
committerjohann <johann>
Fri, 24 Jul 2009 20:05:25 +0000 (20:05 +0000)
b=20261
i=johann
i=shadow

Use current when task == NULL.

lnet/libcfs/linux/linux-debug.c

index c96eb4a..90b0dd9 100644 (file)
@@ -270,6 +270,8 @@ static DUMP_TRACE_CONST struct stacktrace_ops print_trace_ops = {
        .stack = print_trace_stack,
        .address = print_trace_address,
 };
+        if (tsk == NULL)
+                tsk = current;
         /* dump_stack() */
         /* show_trace() */
        printk("Pid: %d, comm: %.20s\n", tsk->pid, tsk->comm);