Whamcloud - gitweb
LU-2697 osp: remove trailing newline on thread names
authorchas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Mon, 28 Jan 2013 14:58:35 +0000 (09:58 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 31 Jan 2013 05:18:43 +0000 (00:18 -0500)
The trailing newline on the thread name causes confusion with some
utilities that examine this string.

Signed-off-by: chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Change-Id: I031aafd2541b1829bc721ebcb9f52cb5e73101b3
Reviewed-on: http://review.whamcloud.com/5189
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osp/osp_precreate.c
lustre/osp/osp_sync.c

index 0a0f9f0..1196991 100644 (file)
@@ -881,7 +881,7 @@ static int osp_precreate_thread(void *_arg)
 
        ENTRY;
 
-       sprintf(pname, "osp-pre-%u\n", d->opd_index);
+       sprintf(pname, "osp-pre-%u", d->opd_index);
        cfs_daemonize(pname);
 
        rc = lu_env_init(&env, d->opd_dt_dev.dd_lu_dev.ld_type->ldt_ctx_tags);
index 0616e87..fc67e5c 100644 (file)
@@ -844,7 +844,7 @@ static int osp_sync_thread(void *_arg)
                RETURN(rc);
        }
 
-       sprintf(pname, "osp-syn-%u\n", d->opd_index);
+       sprintf(pname, "osp-syn-%u", d->opd_index);
        cfs_daemonize(pname);
 
        spin_lock(&d->opd_syn_lock);