From: Andrew Morton <akpm@osdl.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: LKML <linux-kernel@vger.kernel.org>, Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH -fix] swsusp: Make userland suspend work on SMP again
Date: Thu, 5 Oct 2006 16:40:36 -0700 [thread overview]
Message-ID: <20061005164036.06237b30.akpm@osdl.org> (raw)
In-Reply-To: <200610042226.43833.rjw@sisk.pl>
On Wed, 4 Oct 2006 22:26:42 +0200
"Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> Unfortunately one of the recent changes in swsusp has broken the userland
> suspend on SMP. Fix it.
>
Which patch does this fix?
> ---
> ---
> kernel/power/user.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-2.6.18-mm3/kernel/power/user.c
I'll assume from this that your patch is applicable to -mm and that mainline
doesn't have this bug.
I'll further assume that it's swsusp-add-ioctl-for-swap-files-support.patch
which added the bug.
> ===================================================================
> --- linux-2.6.18-mm3.orig/kernel/power/user.c
> +++ linux-2.6.18-mm3/kernel/power/user.c
> @@ -149,10 +149,10 @@ static int snapshot_ioctl(struct inode *
> error = freeze_processes();
> if (error) {
> thaw_processes();
> + enable_nonboot_cpus();
> error = -EBUSY;
> }
> }
> - enable_nonboot_cpus();
> up(&pm_sem);
> if (!error)
> data->frozen = 1;
next prev parent reply other threads:[~2006-10-05 23:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-04 20:26 [PATCH -fix] swsusp: Make userland suspend work on SMP again Rafael J. Wysocki
2006-10-04 20:58 ` Pavel Machek
2006-10-05 23:40 ` Andrew Morton [this message]
2006-10-06 8:52 ` Rafael J. Wysocki
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=20061005164036.06237b30.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
/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