From: Oleg Nesterov <oleg@redhat.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Kentaro Takeda <takedakn@nttdata.co.jp>,
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Matt Fleming <matt@console-pimps.org>, Tejun Heo <tj@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH] tomoyo: remove tomoyo_gc_thread()->daemonize()
Date: Tue, 16 Aug 2011 20:34:05 +0200 [thread overview]
Message-ID: <20110816183405.GA3257@redhat.com> (raw)
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))
next reply other threads:[~2011-08-16 18:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-16 18:34 Oleg Nesterov [this message]
2011-08-16 19:36 ` Tejun Heo
2011-08-16 21:31 ` Matt Fleming
2011-08-16 23:49 ` James Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110816183405.GA3257@redhat.com \
--to=oleg@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@console-pimps.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=takedakn@nttdata.co.jp \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®