From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Pavel Machek <pavel@suse.cz>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: swsusp not able to stop tasks
Date: Thu, 03 Nov 2005 09:47:37 +0100 [thread overview]
Message-ID: <4369CEA9.4030008@drzeus.cx> (raw)
In-Reply-To: <20051102210326.GC23943@elf.ucw.cz>
Pavel Machek wrote:
> Hi!
>
>
>>> What is this kauditd? Try turning auditing off in kernel config, and
>>> it should go away. If it does, add try_to_freeze() at place where
>>> sleep is possible into kauditd...
>>>
>> That it did. And the machine suspends fine with audit removed. I'll have
>> a look at inserting those try_to_freeze().
>>
>
> Good.
>
>
The following did the trick:
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);
Rgds
Pierre
next prev parent reply other threads:[~2005-11-03 8:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-02 13:22 swsusp not able to stop tasks Pierre Ossman
2005-11-02 13:38 ` Pavel Machek
2005-11-02 15:29 ` Pierre Ossman
2005-11-02 21:03 ` Pavel Machek
2005-11-03 8:47 ` Pierre Ossman [this message]
2005-11-06 21:34 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4369CEA9.4030008@drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox