Re: [PATCH] audit: cleanup prune_tree_thread

2016-04-04 Thread Paul Moore
On Thursday, March 31, 2016 10:49:28 AM Jiri Slaby wrote: > 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

[PATCH] audit: cleanup prune_tree_thread

2016-03-31 Thread Jiri Slaby
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