Skip to contentSkip to conversation

tomoyo: remove tomoyo_gc_thread()->daemonize()

PATCH In review Oleg Nesterov 4 participants 4 messages Aug 16, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---

 security/tomoyo/gc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/tomoyo/gc.c renamed from security/tomoyo/gc.c~1_daemonize_tomoyo +1 -1
@@ -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))