[PATCH] tomoyo: remove tomoyo_gc_thread()->daemonize()

From: Oleg Nesterov
Date: Tue Aug 16 2011 - 14:37:41 EST


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@xxxxxxxxxx>
---

security/tomoyo/gc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.1/security/tomoyo/gc.c~1_daemonize_tomoyo 2011-08-12 16:02:18.000000000 +0200
+++ 3.1/security/tomoyo/gc.c 2011-08-16 20:18:52.000000000 +0200
@@ -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))

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/