Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))