aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index f29221e95792..bb1d3619ca12 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -99,10 +99,13 @@ void proc_task_name(struct seq_file *m, struct task_struct *p, bool escape)
99{ 99{
100 char *buf; 100 char *buf;
101 size_t size; 101 size_t size;
102 char tcomm[sizeof(p->comm)]; 102 char tcomm[64];
103 int ret; 103 int ret;
104 104
105 get_task_comm(tcomm, p); 105 if (p->flags & PF_WQ_WORKER)
106 wq_worker_comm(tcomm, sizeof(tcomm), p);
107 else
108 __get_task_comm(tcomm, sizeof(tcomm), p);
106 109
107 size = seq_get_buf(m, &buf); 110 size = seq_get_buf(m, &buf);
108 if (escape) { 111 if (escape) {