public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [RFC] Add the "icebox"
Date: Wed, 07 Nov 2007 16:54:53 +0100	[thread overview]
Message-ID: <1194450893.4470.51.camel@johannes.berg> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0711071036540.4444-100000@iolanthe.rowland.org>


[-- Attachment #1.1: Type: text/plain, Size: 1393 bytes --]


> The idea was that kernel threads would have a PM-notifier routine and
> would be sent to the icebox when the routine gets a
> PM_{HIBERNATION|SUSPEND|RESTORE}_PREPARE message.  Presumably the
> notifier routine wouldn't return until the thread was safely on its way
> to the icebox.
> 
> You are correct that this would require some additional locking, plus 
> the extra notifier routine, plus ways to handle timeouts, plus maybe 
> some other stuff.  That's why I said in my earlier message that 
> keeping the freezer around for these sorts of threads would be a good 
> idea -- it would avoid all this new overhead.

Ok, makes sense, thanks for the explanation.

> The icebox would still be useful, however, for user tasks that try to
> do I/O after a system-sleep transition has begun.  Right now this can't
> happen, thanks to the freezer (except that it _can_ happen on PPC where
> the freezer isn't used for suspend).  Once the freezer no longer
> affects user tasks, kernel drivers will have to do _something_ when a
> user task submits an I/O request during a system sleep.  That
> "something" will be to go to the icebox.

Right, ok. I wish I could change powerpc, I've been maintaining a patch
for months now, but Paul seems to be dead set against it. Not only does
that fix these things, but also we get to use the /sys/power/state
API...

johannes

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2007-11-07 15:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 21:27 [RFC] Add the "icebox" Alan Stern
2007-11-05 22:11 ` Rafael J. Wysocki
2007-11-06 15:08   ` Alan Stern
2007-11-07 17:16   ` Alan Stern
2007-11-07 22:31     ` Rafael J. Wysocki
2007-11-07 22:28       ` Alan Stern
2007-11-07 23:32         ` Rafael J. Wysocki
2007-11-07  8:58 ` Johannes Berg
2007-11-07 15:47   ` Alan Stern
2007-11-07 15:54     ` Johannes Berg [this message]
2007-11-07 16:47       ` Alan Stern
2007-11-07 16:53         ` Johannes Berg
2007-11-07 19:49 ` Mark Gross
2007-11-07 20:02   ` Alan Stern

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=1194450893.4470.51.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=stern@rowland.harvard.edu \
    /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