summaryrefslogtreecommitdiff
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2016-03-31 08:49:28 (GMT)
committerPaul Moore <paul@paul-moore.com>2016-04-04 13:46:47 (GMT)
commit0bf676d1fd5144e66ac06939fa3c7c12086c3b18 (patch)
tree2f47c4a3192ba0e63ac5133247c94abca94c1cfd /kernel/audit.c
parentb562e44f507e863c6792946e4e1b1449fbbac85d (diff)
downloadlinux-0bf676d1fd5144e66ac06939fa3c7c12086c3b18.tar.xz
audit: cleanup prune_tree_thread
We can use kthread_run instead of kthread_create+wake_up_process for creating the thread. We do not need to set the task state to TASK_RUNNING after schedule(), the process is in that state already. And we do not need to set the state to TASK_INTERRUPTIBLE when not doing schedule() as we set the state to TASK_RUNNING immediately afterwards. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Paul Moore <paul@paul-moore.com> Cc: Eric Paris <eparis@redhat.com> Cc: <linux-audit@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions