Whamcloud - gitweb
LU-12511 utils: Move utilies specific values out of Lustre UAPI headers
[fs/lustre-release.git] / lustre / tests / kernel / kinode.c
index b143ab8..0973584 100644 (file)
@@ -49,7 +49,7 @@ static char fname[4096];
 module_param_string(fname, fname, sizeof(fname), 0644);
 MODULE_PARM_DESC(fname, "name of file to stat");
 
-struct completion thr_start;
+static DECLARE_COMPLETION(thr_start);
 
 #define PREFIX "lustre_kinode_%u:"
 
@@ -131,7 +131,6 @@ static int __init kinode_init(void)
        }
 
        /* Run the same from a kthread. */
-       init_completion(&thr_start);
        thr = kthread_run(stat_thread, &stbuf2, "kinode_%u", run_id);
        if (IS_ERR(thr)) {
                pr_err(PREFIX " Cannot create kthread\n", run_id);
@@ -151,6 +150,7 @@ static int __init kinode_init(void)
                pr_err(PREFIX " inode numbers are different: %llu %llu\n",
                       run_id, stbuf1.ino, stbuf2.ino);
        else
+               /* below message is checked in sanity.sh test_129 */
                pr_err(PREFIX " inode numbers are identical: %llu\n",
                       run_id, stbuf1.ino);