|
@@ -5192,6 +5192,8 @@ void sched_show_task(struct task_struct *p)
|
|
int ppid;
|
|
int ppid;
|
|
unsigned long state = p->state;
|
|
unsigned long state = p->state;
|
|
|
|
|
|
|
|
+ if (!try_get_task_stack(p))
|
|
|
|
+ return;
|
|
if (state)
|
|
if (state)
|
|
state = __ffs(state) + 1;
|
|
state = __ffs(state) + 1;
|
|
printk(KERN_INFO "%-15.15s %c", p->comm,
|
|
printk(KERN_INFO "%-15.15s %c", p->comm,
|
|
@@ -5221,6 +5223,7 @@ void sched_show_task(struct task_struct *p)
|
|
|
|
|
|
print_worker_info(KERN_INFO, p);
|
|
print_worker_info(KERN_INFO, p);
|
|
show_stack(p, NULL);
|
|
show_stack(p, NULL);
|
|
|
|
+ put_task_stack(p);
|
|
}
|
|
}
|
|
|
|
|
|
void show_state_filter(unsigned long state_filter)
|
|
void show_state_filter(unsigned long state_filter)
|