From: Alex Markuze Date: Tue, 18 Mar 2025 16:46:06 +0000 (+0000) Subject: Add task status X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dce5bda2bd3a755a64eccb7fdab745c4e9be7bf8;p=ceph-client.git Add task status --- diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index 1a8128da66ea..295ef649acd2 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; }