Skip to content

Commit 09f464b

Browse files
oleg-nesterovxjamesmorris
authored andcommitted
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: 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>
1 parent 1e39f38 commit 09f464b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/tomoyo/gc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ static int tomoyo_gc_thread(void *unused)
660660
static DEFINE_MUTEX(tomoyo_gc_mutex);
661661
if (!mutex_trylock(&tomoyo_gc_mutex))
662662
goto out;
663-
daemonize("GC for TOMOYO");
663+
664664
do {
665665
tomoyo_collect_entry();
666666
if (list_empty(&tomoyo_gc_list))

0 commit comments

Comments
 (0)