Commit 7a4ae749 authored by Pierre Ossman's avatar Pierre Ossman Committed by Linus Torvalds

[PATCH] Add try_to_freeze to kauditd

kauditd was causing suspends to fail because it refused to freeze.  Adding
a try_to_freeze() to its sleep loop solves the issue.
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
Acked-by: default avatarPavel Machek <pavel@suse.cz>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bf001b26
...@@ -291,8 +291,10 @@ int kauditd_thread(void *dummy) ...@@ -291,8 +291,10 @@ int kauditd_thread(void *dummy)
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
add_wait_queue(&kauditd_wait, &wait); add_wait_queue(&kauditd_wait, &wait);
if (!skb_queue_len(&audit_skb_queue)) if (!skb_queue_len(&audit_skb_queue)) {
try_to_freeze();
schedule(); schedule();
}
__set_current_state(TASK_RUNNING); __set_current_state(TASK_RUNNING);
remove_wait_queue(&kauditd_wait, &wait); remove_wait_queue(&kauditd_wait, &wait);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment