From: Andrew Morton <akpm@osdl.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: lkml@kcore.org, linux-kernel@vger.kernel.org, akpm@zip.com.au
Subject: Re: swsusp: fix suspending with mysqld
Date: Mon, 4 Oct 2004 15:04:32 -0700 [thread overview]
Message-ID: <20041004150432.097a0d5d.akpm@osdl.org> (raw)
In-Reply-To: <20041004122422.GA2601@elf.ucw.cz>
Pavel Machek <pavel@ucw.cz> wrote:
>
> mysqld does signal calls in pretty tight loop, and swsusp is not able
> to stop processes in such case. This should fix it. Please apply,
>
> ...
> @@ -2260,6 +2259,8 @@
> ret = -EINTR;
> }
>
> + if (current->flags & PF_FREEZE)
> + refrigerator(1);
> return ret;
> }
This seems hacky, and arbitrary. I mean, why add this in
sys_rt_sigtimedwait()? Because that is the syscall which mysql appears to
use? What if a different application were to be using a different syscall?
Do we add a refrigerator() call there too?
Or am I missing something?
prev parent reply other threads:[~2004-10-04 22:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-04 12:24 swsusp: fix suspending with mysqld Pavel Machek
2004-10-04 19:09 ` Jan De Luyck
2004-10-04 22:26 ` Pavel Machek
2004-10-05 14:46 ` Jan De Luyck
2004-10-04 22:04 ` Andrew Morton [this message]
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=20041004150432.097a0d5d.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@kcore.org \
--cc=pavel@ucw.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