X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fsec_gc.c;h=fa4fb49a279060e380440f0a6081503069100d1d;hb=b9cbe3616b6e0b44c7835b1aec65befb85f848f9;hp=4a3585bcb4188cf3af5bd06aa666288765e9759b;hpb=0f8dca08a4f68cba82c2c822998ecc309d3b7aaf;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/sec_gc.c b/lustre/ptlrpc/sec_gc.c index 4a3585b..fa4fb49 100644 --- a/lustre/ptlrpc/sec_gc.c +++ b/lustre/ptlrpc/sec_gc.c @@ -153,7 +153,7 @@ static void sec_do_gc(struct ptlrpc_sec *sec) LASSERT(sec->ps_policy->sp_cops->gc_ctx); if (unlikely(sec->ps_gc_next == 0)) { - CWARN("sec %p(%s) has 0 gc time\n", + CDEBUG(D_SEC, "sec %p(%s) has 0 gc time\n", sec, sec->ps_policy->sp_name); return; } @@ -195,7 +195,7 @@ again: /* if someone is waiting to be deleted, let it * proceed as soon as possible. */ if (cfs_atomic_read(&sec_gc_wait_del)) { - CWARN("deletion pending, start over\n"); + CDEBUG(D_SEC, "deletion pending, start over\n"); cfs_mutex_unlock(&sec_gc_mutex); goto again; } @@ -236,8 +236,7 @@ int sptlrpc_gc_init(void) memset(&sec_gc_thread, 0, sizeof(sec_gc_thread)); cfs_waitq_init(&sec_gc_thread.t_ctl_waitq); - rc = cfs_kernel_thread(sec_gc_main, &sec_gc_thread, - CLONE_VM | CLONE_FILES); + rc = cfs_create_thread(sec_gc_main, &sec_gc_thread, CFS_DAEMON_FLAGS); if (rc < 0) { CERROR("can't start gc thread: %d\n", rc); return rc;