From: Pavel Machek <pavel@ucw.cz>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
"Rafael J. Wysocki" <rjw@sisk.pl>
Subject: Re: mm snapshot broken-out-2007-04-07-03-27.tar.gz uploaded
Date: Sun, 8 Apr 2007 12:42:45 +0000 [thread overview]
Message-ID: <20070408124244.GA4404@ucw.cz> (raw)
In-Reply-To: <20070407131000.e3007eac.akpm@linux-foundation.org>
Hi!
> > > The mm snapshot broken-out-2007-04-07-03-27.tar.gz has been uploaded to
> > >
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/broken-out-2007-04-07-03-27.tar.gz
> > >
> > > It contains the following patches against 2.6.21-rc6:
> >
> > suspend-to-disk doesn't work when pktgen module is loaded.
> >
> > Stopping kernel threads timed out after 20 seconds (2 tasks refusing to freeze):
> > kpktgend_0
> > kpktgend_1
> > Restarting tasks ... done.
> > swsusp: Basic memory bitmaps freed
>
> This?
>
> --- a/net/core/pktgen.c~pktgen-add-try_to_freeze
> +++ a/net/core/pktgen.c
> @@ -128,6 +128,7 @@
> #include <linux/ioport.h>
> #include <linux/interrupt.h>
> #include <linux/capability.h>
> +#include <linux/freezer.h>
> #include <linux/delay.h>
> #include <linux/timer.h>
> #include <linux/list.h>
> @@ -3325,6 +3326,8 @@ static int pktgen_thread_worker(void *ar
> t->control &= ~(T_REMDEV);
> }
>
> + try_to_freeze();
> +
> set_current_state(TASK_INTERRUPTIBLE);
I'd actually prefer freezing it while in INTERRUPTIBLE, but both
versions are probably okay.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2007-04-08 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200704071029.l37ATdKR032505@shell0.pdx.osdl.net>
2007-04-07 19:43 ` mm snapshot broken-out-2007-04-07-03-27.tar.gz uploaded Michal Piotrowski
2007-04-07 20:10 ` Andrew Morton
2007-04-08 12:42 ` Pavel Machek [this message]
2007-04-08 13:26 ` Michal Piotrowski
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=20070408124244.GA4404@ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=netdev@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).