public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MMC] Add try_to_freeze to kauditd
@ 2005-11-07  7:13 Pierre Ossman
  2005-11-11  8:41 ` Pierre Ossman
  2005-11-24  9:13 ` Pierre Ossman
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Ossman @ 2005-11-07  7:13 UTC (permalink / raw)
  To: akpm; +Cc: Pierre Ossman, pavel, linux-kernel

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: Pierre Ossman <drzeus@drzeus.cx>
Acked-by: Pavel Machek <pavel@suse.cz>
---

 kernel/audit.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/kernel/audit.c b/kernel/audit.c
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -291,8 +291,10 @@ int kauditd_thread(void *dummy)
 			set_current_state(TASK_INTERRUPTIBLE);
 			add_wait_queue(&kauditd_wait, &wait);
 
-			if (!skb_queue_len(&audit_skb_queue))
+			if (!skb_queue_len(&audit_skb_queue)) {
+				try_to_freeze();
 				schedule();
+			}
 
 			__set_current_state(TASK_RUNNING);
 			remove_wait_queue(&kauditd_wait, &wait);


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [MMC] Add try_to_freeze to kauditd
  2005-11-07  7:13 [PATCH] [MMC] Add try_to_freeze to kauditd Pierre Ossman
@ 2005-11-11  8:41 ` Pierre Ossman
  2005-11-24  9:13 ` Pierre Ossman
  1 sibling, 0 replies; 4+ messages in thread
From: Pierre Ossman @ 2005-11-11  8:41 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: akpm, pavel, linux-kernel

Pierre Ossman wrote:
> 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: Pierre Ossman <drzeus@drzeus.cx>
> Acked-by: Pavel Machek <pavel@suse.cz>
> ---
>   


This has of course nothing to do with [MMC]. Andrew, could you strip 
this of the patch before you add it to your set?

Rgds
Pierre


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [MMC] Add try_to_freeze to kauditd
  2005-11-07  7:13 [PATCH] [MMC] Add try_to_freeze to kauditd Pierre Ossman
  2005-11-11  8:41 ` Pierre Ossman
@ 2005-11-24  9:13 ` Pierre Ossman
  2005-11-24 11:41   ` Pavel Machek
  1 sibling, 1 reply; 4+ messages in thread
From: Pierre Ossman @ 2005-11-24  9:13 UTC (permalink / raw)
  To: akpm, pavel; +Cc: linux-kernel

Pierre Ossman wrote:
> 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: Pierre Ossman <drzeus@drzeus.cx>
> Acked-by: Pavel Machek <pavel@suse.cz>
> ---
>
>  kernel/audit.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
>   

Did anyone actually pick this up? Its not in -mm or Linus' tree.

Rgds
Pierre


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [MMC] Add try_to_freeze to kauditd
  2005-11-24  9:13 ` Pierre Ossman
@ 2005-11-24 11:41   ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2005-11-24 11:41 UTC (permalink / raw)
  To: Pierre Ossman; +Cc: akpm, linux-kernel

Hi!

> >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: Pierre Ossman <drzeus@drzeus.cx>
> >Acked-by: Pavel Machek <pavel@suse.cz>
> >---
> >
> > kernel/audit.c |    4 +++-
> > 1 files changed, 3 insertions(+), 1 deletions(-)
> >
> >  
> 
> Did anyone actually pick this up? Its not in -mm or Linus' tree.

Not me... I do not think it needs to go through my trees, should be
simple enough to go to -mm directly.
								Pavel
-- 
Thanks, Sharp!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-24 11:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07  7:13 [PATCH] [MMC] Add try_to_freeze to kauditd Pierre Ossman
2005-11-11  8:41 ` Pierre Ossman
2005-11-24  9:13 ` Pierre Ossman
2005-11-24 11:41   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox