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;
}
/* 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;
}
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;