diff options
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/fs/proc/array.c b/fs/proc/array.c index ff869a66b34e..4321aa63835d 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -92,6 +92,7 @@  #include <linux/string_helpers.h>  #include <linux/user_namespace.h>  #include <linux/fs_struct.h> +#include <linux/kthread.h>  #include <asm/processor.h>  #include "internal.h" @@ -102,6 +103,8 @@ void proc_task_name(struct seq_file *m, struct task_struct *p, bool escape)  	if (p->flags & PF_WQ_WORKER)  		wq_worker_comm(tcomm, sizeof(tcomm), p); +	else if (p->flags & PF_KTHREAD) +		get_kthread_comm(tcomm, sizeof(tcomm), p);  	else  		__get_task_comm(tcomm, sizeof(tcomm), p); |