We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c183d9 commit 3820050Copy full SHA for 3820050
kernel/sched/core.c
@@ -5192,6 +5192,8 @@ void sched_show_task(struct task_struct *p)
5192
int ppid;
5193
unsigned long state = p->state;
5194
5195
+ if (!try_get_task_stack(p))
5196
+ return;
5197
if (state)
5198
state = __ffs(state) + 1;
5199
printk(KERN_INFO "%-15.15s %c", p->comm,
@@ -5221,6 +5223,7 @@ void sched_show_task(struct task_struct *p)
5221
5223
5222
5224
print_worker_info(KERN_INFO, p);
5225
show_stack(p, NULL);
5226
+ put_task_stack(p);
5227
}
5228
5229
void show_state_filter(unsigned long state_filter)
0 commit comments