Commit 09f464bf authored by Oleg Nesterov's avatar Oleg Nesterov Committed by James Morris

tomoyo: remove tomoyo_gc_thread()->daemonize()

daemonize() is only needed when a user-space task does kernel_thread().

tomoyo_gc_thread() is kthread_create()'ed and thus it doesn't need
the soon-to-be-deprecated daemonize().
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarMatt Fleming <matt.fleming@intel.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 1e39f384
...@@ -660,7 +660,7 @@ static int tomoyo_gc_thread(void *unused) ...@@ -660,7 +660,7 @@ static int tomoyo_gc_thread(void *unused)
static DEFINE_MUTEX(tomoyo_gc_mutex); static DEFINE_MUTEX(tomoyo_gc_mutex);
if (!mutex_trylock(&tomoyo_gc_mutex)) if (!mutex_trylock(&tomoyo_gc_mutex))
goto out; goto out;
daemonize("GC for TOMOYO");
do { do {
tomoyo_collect_entry(); tomoyo_collect_entry();
if (list_empty(&tomoyo_gc_list)) if (list_empty(&tomoyo_gc_list))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment