All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tomoyo: remove tomoyo_gc_thread()->daemonize()
@ 2011-08-16 18:34 Oleg Nesterov
  2011-08-16 19:36 ` Tejun Heo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oleg Nesterov @ 2011-08-16 18:34 UTC (permalink / raw)
  To: Andrew Morton, Kentaro Takeda, Tetsuo Handa
  Cc: Matt Fleming, Tejun Heo, linux-kernel

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

 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))


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-16 23:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 18:34 [PATCH] tomoyo: remove tomoyo_gc_thread()->daemonize() Oleg Nesterov
2011-08-16 19:36 ` Tejun Heo
2011-08-16 21:31 ` Matt Fleming
2011-08-16 23:49 ` James Morris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.