From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Ingo Molnar <mingo@elte.hu>
Cc: David Rodriguez <livuxman@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: Problem with CFS V20 and Suspend2/tuxonice
Date: Sat, 25 Aug 2007 21:49:44 +0200 [thread overview]
Message-ID: <200708252149.45482.rjw@sisk.pl> (raw)
In-Reply-To: <20070825190142.GA15888@elte.hu>
On Saturday, 25 August 2007 21:01, Ingo Molnar wrote:
>
> * David Rodriguez <livuxman@gmail.com> wrote:
>
> > I'm using 2.6.22.5 with cfs v20.3 and suspend2 2.2.10.2. With that
> > combination, suspend is not working anymore (with cfs v19 was
> > working). Stops on suspend in "Suspending tasks" Looking at cfs patch,
> > I managed to change the migration_thread, adding again the
> > try_to_freeze() removed in last patch and now the suspend finished,
> > but resume not work. Of course I don't know why that was removed, and
> > rewriting it is not a solution, but I want to report it.
>
> could you try the patch below, does it fix this problem?
>
> Ingo
>
> Index: linux-cfs-2.6.22.5.q/kernel/sched.c
> ===================================================================
> --- linux-cfs-2.6.22.5.q.orig/kernel/sched.c
> +++ linux-cfs-2.6.22.5.q/kernel/sched.c
> @@ -5043,6 +5043,8 @@ static int migration_thread(void *data)
> struct migration_req *req;
> struct list_head *head;
>
> + try_to_freeze();
> +
> spin_lock_irq(&rq->lock);
>
> if (cpu_is_offline(cpu)) {
> @@ -5399,6 +5401,7 @@ migration_call(struct notifier_block *nf
> p = kthread_create(migration_thread, hcpu, "migration/%d", cpu);
> if (IS_ERR(p))
> return NOTIFY_BAD;
> + p->flags |= PF_NOFREEZE;
Yeah.
In 2.6.23-rc all kernel threads are PF_NOFREEZE by default.
> kthread_bind(p, cpu);
> /* Must be high prio: stop_machine expects to yield to it. */
> rq = task_rq_lock(p, &flags);
> -
Greetings,
Rafael
--
"Premature optimization is the root of all evil." - Donald Knuth
next prev parent reply other threads:[~2007-08-25 19:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1946b54f0708250423k75d5797fuc5b032be7e143f26@mail.gmail.com>
2007-08-25 11:29 ` Problem with CFS V20 and Suspend2/tuxonice David Rodriguez
2007-08-25 12:54 ` Fabio Comolli
2007-08-25 16:52 ` [Suspend2-devel] " Christian Hesse
2007-08-25 18:49 ` Matthias Hensler
2007-08-25 19:02 ` Ingo Molnar
2007-08-27 11:41 ` Pavel Machek
2007-08-27 12:11 ` Ingo Molnar
2007-08-27 12:25 ` Rafael J. Wysocki
2007-08-25 19:02 ` Ingo Molnar
2007-08-25 20:14 ` Christian Hesse
2007-08-25 19:01 ` Ingo Molnar
2007-08-25 19:49 ` Rafael J. Wysocki [this message]
2007-08-25 20:15 ` David Rodriguez
2007-08-25 16:15 rb6
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=200708252149.45482.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=livuxman@gmail.com \
--cc=mingo@elte.hu \
/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