[PATCH 02/14] audit: Fix invalid wakeup in kauditd_thread

2013-08-29 Thread Libin
If this thread is preempted at(or before) location a, and the other thread set the condition followed with wake_up_process. After that when this thread is re-scheduled, calling set_current_state to set itself as state TASK_INTERRUPTIBLE, if it is preempted again after that and before

[PATCH 02/14] audit: Fix invalid wakeup in kauditd_thread

2013-08-29 Thread Libin
If this thread is preempted at(or before) location a, and the other thread set the condition followed with wake_up_process. After that when this thread is re-scheduled, calling set_current_state to set itself as state TASK_INTERRUPTIBLE, if it is preempted again after that and before