audit: don't check if kauditd is valid every time
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 29 Apr 2013 22:05:14 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:26 +0000 (15:54 -0700)
commit13f51e1c3fbebeab801f768f433067ff075dea5a
treece4c99e262771b82f3c5213d7c0a0a5dc87d5207
parent3f68613f39cdc242fa2e872ac04a802e7cc7b7cb
audit: don't check if kauditd is valid every time

We only need to check if kauditd is valid after we start it, if kauditd
is invalid, we will set kauditd_task to NULL.  So next time, we will
start kauditd again.

It means if kauditd_task is not NULL,it must be valid.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/audit.c