gfs2: Add device name to gfs2_logd and gfs2_quotad
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 28 Aug 2023 16:05:44 +0000 (18:05 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Sep 2023 13:58:17 +0000 (15:58 +0200)
Add the device name to the names of the gfs2_logd and gfs2_quotad kernel
threads to allow for easier identification.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/ops_fstype.c

index a1a8be5..bcbe952 100644 (file)
@@ -1103,7 +1103,7 @@ static int init_threads(struct gfs2_sbd *sdp)
        struct task_struct *p;
        int error = 0;
 
-       p = kthread_create(gfs2_logd, sdp, "gfs2_logd");
+       p = kthread_create(gfs2_logd, sdp, "gfs2_logd/%s", sdp->sd_fsname);
        if (IS_ERR(p)) {
                error = PTR_ERR(p);
                fs_err(sdp, "can't create logd thread: %d\n", error);
@@ -1112,7 +1112,7 @@ static int init_threads(struct gfs2_sbd *sdp)
        get_task_struct(p);
        sdp->sd_logd_process = p;
 
-       p = kthread_create(gfs2_quotad, sdp, "gfs2_quotad");
+       p = kthread_create(gfs2_quotad, sdp, "gfs2_quotad/%s", sdp->sd_fsname);
        if (IS_ERR(p)) {
                error = PTR_ERR(p);
                fs_err(sdp, "can't create quotad thread: %d\n", error);