Skip to content

Commit

Permalink
tomoyo: remove tomoyo_gc_thread()->daemonize()
Browse files Browse the repository at this point in the history
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: Oleg Nesterov <oleg@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
Oleg Nesterov authored and James Morris committed Aug 16, 2011
1 parent 1e39f38 commit 09f464b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/tomoyo/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ static int tomoyo_gc_thread(void *unused)
static DEFINE_MUTEX(tomoyo_gc_mutex);
if (!mutex_trylock(&tomoyo_gc_mutex))
goto out;
daemonize("GC for TOMOYO");

do {
tomoyo_collect_entry();
if (list_empty(&tomoyo_gc_list))
Expand Down

0 comments on commit 09f464b

Please sign in to comment.