All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: linux-pm@lists.osdl.org
Subject: Re: question on freeze and aio
Date: Tue, 13 Feb 2007 16:54:44 +0100	[thread overview]
Message-ID: <200702131654.44748.rjw@sisk.pl> (raw)
In-Reply-To: <20070213101753.GC12996@elf.ucw.cz>

On Tuesday, 13 February 2007 11:17, Pavel Machek wrote:
> Hi!
> 
> > > > can there be running aio requests if all tasks are frozen?
> > > 
> > > Since tasks are frozen, no new aio requests would be submitted. We do a
> > > sync to ssek to complete existing requests; I haven't looked to see
> > > whether that would need extending to flush aio as well, but don't think
> > > that would be the case. Given everyone else's silence, so far, you might
> > > be better to ask the author(s) of the aio code.
> > 
> > I believe Nigel is basically correct.  However sync will only flush aio 
> > for block devices.  Other types of aio will remain active.
> > 
> > aio callbacks are interrupt-driven and execute in a workqueue (see
> > fs/aio.c), and as far as I can tell that workqueue doesn't freeze.  
> > Unless some general facility freezes all workqueues...
> 
> If this is so... we need to make that particular workqueue
> freezeable. (And we should really make most workqueues freezeable).

Except for the ones that are needed to save the image.  Do we know which
ones they are?

Rafael

  reply	other threads:[~2007-02-13 15:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09 16:04 question on freeze and aio Oliver Neukum
2007-02-09 21:24 ` Rafael J. Wysocki
2007-02-09 21:29 ` Nigel Cunningham
2007-02-09 22:03   ` Alan Stern
2007-02-09 22:08     ` Nigel Cunningham
2007-02-09 22:16       ` Rafael J. Wysocki
2007-02-09 22:23       ` Alan Stern
2007-02-09 22:09     ` Rafael J. Wysocki
2007-02-13 10:18       ` Pavel Machek
2007-02-13 15:53         ` Rafael J. Wysocki
2007-02-14 21:44           ` Pavel Machek
2007-02-13 21:01         ` Alan Stern
2007-02-14 17:25           ` Randy Dunlap
2007-02-14 21:32             ` Rafael J. Wysocki
2007-02-14 21:28           ` Rafael J. Wysocki
2007-02-14 23:40             ` Rafael J. Wysocki
2007-02-13 10:17     ` Pavel Machek
2007-02-13 15:54       ` Rafael J. Wysocki [this message]
2007-02-13 10:16 ` Pavel Machek

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=200702131654.44748.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-pm@lists.osdl.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.