[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d120d5000707040712g76c4835bif2e226fe4710351f@mail.gmail.com>
Date: Wed, 4 Jul 2007 10:12:48 -0400
From: "Dmitry Torokhov" <dmitry.torokhov@...il.com>
To: "Paul Mackerras" <paulus@...ba.org>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
"Matthew Garrett" <mjg59@...f.ucam.org>,
linux-pm@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
On 7/4/07, Paul Mackerras <paulus@...ba.org> wrote:
> Rafael J. Wysocki writes:
>
> > They are mostly related to kernel threads, that we've already agreed no to
> > freeze (except for the ones that want that, but they will be responsible for
> > getting everything right). The initial patches for that are in -mm and more
> > will come.
>
> Serious question: which kernel threads would actually want to be
> frozen?
>
> Threads that do no I/O at all don't care about suspend/resume and
> don't need to be frozen in any case. Threads that issue I/O requests
> in order to service incoming I/O requests can't be frozen because of
> the possibility of deadlock. Which leaves threads that do I/O just
> for the fun of it. :)
>
> What am I missing?
>
I like kseriod and kgameportd to be frozen. If fast resume of serio
port fails we kick the task of full resume to kseriod. But when we
hibernate and all the devices are resumed again so snapshot can be
written I don't care if touchpad failed to resume - it can be dealt
with later, when system is actually resumes. So I like that by
freezing I do not delay hibernation and all requests get simply
discarded as they are not in the image. This mostly affects
hibernation though.
Having these threads frozen also guarantees that serio/gameport device
tree is stable during susped/resume and I can process outstanding
requests later, when system is fully up.
--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists