From: Oleg Nesterov Date: Tue, 16 Aug 2011 18:34:05 +0000 (+0200) Subject: tomoyo: remove tomoyo_gc_thread()->daemonize() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09f464bf0961aba3cd917d4939597bafb269fb95;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Tejun Heo Acked-by: Matt Fleming Signed-off-by: James Morris --- diff --git a/security/tomoyo/gc.c b/security/tomoyo/gc.c index ae135fbbbe95..5295b5caaa21 100644 --- a/security/tomoyo/gc.c +++ b/security/tomoyo/gc.c @@ -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))