]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
fixups
authorAlex Markuze <amarkuze@redhat.com>
Tue, 18 Mar 2025 16:43:15 +0000 (16:43 +0000)
committerAlex Markuze <amarkuze@redhat.com>
Tue, 18 Mar 2025 16:43:15 +0000 (16:43 +0000)
fs/ceph/debugfs.c
net/ceph/ceph_san_logger.c

index abd88a31f81418303f1869cb27f7bee58ec0d5c3..1a8128da66ea5318aae330b682052a6cec3b576b 100644 (file)
@@ -404,8 +404,6 @@ static int ceph_san_tls_show(struct seq_file *s, void *p)
        spin_lock(&g_logger.lock);
 
        list_for_each_entry(ctx, &g_logger.contexts, list) {
-               /* Print context information */
-               seq_printf(s, "Context: PID=%d Command=%s\n", ctx->pid, ctx->comm);
 
                /* Initialize iterator for this context's pagefrag */
                ceph_san_log_iter_init(&iter, &ctx->pf);
index f423bc6d691c7b26d309975f914cb6f24fdd5457..0c43c38b2e387696d6629c1df772b32a4a6d457f 100644 (file)
@@ -103,6 +103,8 @@ struct ceph_san_tls_ctx *ceph_san_get_tls_ctx(void)
     current->tls.release = ceph_san_tls_release;
     task_state_to_char(current);
     ctx->task = current;
+    ctx->pid = current->pid;
+    strncpy(ctx->comm, current->comm, sizeof(ctx->comm));
     return ctx;
 }
 EXPORT_SYMBOL(ceph_san_get_tls_ctx);