aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Nesterov2011-08-16 13:34:05 -0500
committerJames Morris2011-08-16 18:48:41 -0500
commit09f464bf0961aba3cd917d4939597bafb269fb95 (patch)
treeffdbb860514012bc2c8fef75cff3aa77c94fb9fc /security/tomoyo
parent1e39f384bb01b0395b69cb70c2cacae65012f203 (diff)
downloadam43-linux-kernel-09f464bf0961aba3cd917d4939597bafb269fb95.tar.gz
am43-linux-kernel-09f464bf0961aba3cd917d4939597bafb269fb95.tar.xz
am43-linux-kernel-09f464bf0961aba3cd917d4939597bafb269fb95.zip
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>
Diffstat (limited to 'security/tomoyo')
-rw-r--r--security/tomoyo/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/gc.c b/security/tomoyo/gc.c
index ae135fbbbe9..5295b5caaa2 100644
--- a/security/tomoyo/gc.c
+++ b/security/tomoyo/gc.c
@@ -660,7 +660,7 @@ static int tomoyo_gc_thread(void *unused)
660 static DEFINE_MUTEX(tomoyo_gc_mutex); 660 static DEFINE_MUTEX(tomoyo_gc_mutex);
661 if (!mutex_trylock(&tomoyo_gc_mutex)) 661 if (!mutex_trylock(&tomoyo_gc_mutex))
662 goto out; 662 goto out;
663 daemonize("GC for TOMOYO"); 663
664 do { 664 do {
665 tomoyo_collect_entry(); 665 tomoyo_collect_entry();
666 if (list_empty(&tomoyo_gc_list)) 666 if (list_empty(&tomoyo_gc_list))