From dce5bda2bd3a755a64eccb7fdab745c4e9be7bf8 Mon Sep 17 00:00:00 2001 From: Alex Markuze Date: Tue, 18 Mar 2025 16:46:06 +0000 Subject: [PATCH] Add task status --- fs/ceph/debugfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 1a8128da66ea5..295ef649acd20 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c @@ -470,13 +470,14 @@ static int ceph_san_contexts_show(struct seq_file *s, void *p) list_for_each_entry(ctx, &g_logger.contexts, list) { int rc = print_task_cgroup(ctx->task, cgroup_path, sizeof(cgroup_path)); + char task_state = ctx->task ? task_state_to_char(ctx->task) : 'N'; - seq_printf(s, "%-8d %-15s : %s\n", + seq_printf(s, "%-8d %-15s [%c] : %s\n", ctx->pid, ctx->comm, + task_state, rc ? cgroup_path : "N/A"); } - spin_unlock_irqrestore(&g_logger.lock, flags); return 0; } -- 2.39.5