summaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2022-07-23 20:09:07 +0300
committerakpm <akpm@linux-foundation.org>2022-07-29 18:12:35 -0700
commited8fb78d7ecdeb3e2e86df0027e2c2cc55f9908b (patch)
tree7f920e6a5a183ce4b9c4ab5df660fb08ae64541e /fs/proc/array.c
parentfa7d574ba4f4f3f4f78d432c8545d9045daa89b1 (diff)
downloadlinux-ed8fb78d7ecdeb3e2e86df0027e2c2cc55f9908b.tar.gz
linux-ed8fb78d7ecdeb3e2e86df0027e2c2cc55f9908b.tar.bz2
linux-ed8fb78d7ecdeb3e2e86df0027e2c2cc55f9908b.zip
proc: add some (hopefully) insightful comments
* /proc/${pid}/net status * removing PDE vs last close stuff (again!) * random small stuff Link: https://lkml.kernel.org/r/YtwrM6sDC0OQ53YB@localhost.localdomain Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 65fa603422e0..99fcbfda8e25 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -99,6 +99,10 @@ void proc_task_name(struct seq_file *m, struct task_struct *p, bool escape)
{
char tcomm[64];
+ /*
+ * Test before PF_KTHREAD because all workqueue worker threads are
+ * kernel threads.
+ */
if (p->flags & PF_WQ_WORKER)
wq_worker_comm(tcomm, sizeof(tcomm), p);
else if (p->flags & PF_KTHREAD)