]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
Add task status
authorAlex Markuze <amarkuze@redhat.com>
Tue, 18 Mar 2025 16:46:06 +0000 (16:46 +0000)
committerAlex Markuze <amarkuze@redhat.com>
Tue, 18 Mar 2025 16:46:06 +0000 (16:46 +0000)
fs/ceph/debugfs.c

index 1a8128da66ea5318aae330b682052a6cec3b576b..295ef649acd2067b0845737f9b86d9004f4a7a60 100644 (file)
@@ -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;
 }