qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Flush pending AIO on reboot and shutdown.
Date: Wed, 13 Aug 2008 10:53:57 -0500	[thread overview]
Message-ID: <48A30395.6060706@codemonkey.ws> (raw)
In-Reply-To: <20080813152329.GG17567@minantech.com>

Gleb Natapov wrote:
> On Wed, Aug 13, 2008 at 10:07:06AM -0500, Anthony Liguori wrote:
>   
> Yes, conceptually this is what should be done. But all outstanding block IO
> requests are stored in one global list in block-raw.c and this file also
> provides a global facility to flush all request from this global queue
> that is why I used it. Otherwise each subsisted will have to be touched
> to have desired affect.
>   

What happens on reset to outstanding disk requests is a semantic of the 
controller itself.  Really, I think the right thing to do is cancel any 
request that can be cancelled.  If a request cannot be cancelled then we 
should wait for it to complete.

Now that I think about it, I think your fixing the wrong problem.  The 
issue isn't that the IO requests need to be completed, but that they 
*will* complete which means that the IDE driver will receive a callback 
for a request that it no longer knows about (because it was reset).  So 
what we really need to do is modify the IDE device such that when it is 
reset, it cancels any pending requests.

The fact that this reset happens as a consequence of a system reset is 
really just a coincidence.

Regards,

Anthony Lgiuori

> --
> 			Gleb.
>
>
>   

  reply	other threads:[~2008-08-13 15:54 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-13 13:23 [Qemu-devel] [PATCH] Flush pending AIO on reboot and shutdown Gleb Natapov
2008-08-13 13:46 ` Samuel Thibault
2008-08-13 13:59   ` Gleb Natapov
2008-08-13 14:06     ` Samuel Thibault
2008-08-13 14:25       ` Gleb Natapov
2008-08-13 14:29         ` Samuel Thibault
2008-08-13 14:40           ` Avi Kivity
2008-08-13 14:41           ` Gleb Natapov
2008-08-13 16:14             ` Samuel Thibault
2008-08-13 13:52 ` Anthony Liguori
2008-08-13 14:13   ` Gleb Natapov
2008-08-13 15:07     ` Anthony Liguori
2008-08-13 15:18       ` Avi Kivity
2008-08-13 15:47         ` Anthony Liguori
2008-08-13 16:36           ` Avi Kivity
2008-08-13 15:23       ` Gleb Natapov
2008-08-13 15:53         ` Anthony Liguori [this message]
2008-08-13 18:35           ` Gleb Natapov
2008-08-13 18:40             ` Avi Kivity
2008-08-13 18:53               ` Gleb Natapov
2008-08-13 19:04                 ` Anthony Liguori
2008-08-14 10:26                   ` Jamie Lokier
2008-08-13 19:03             ` Anthony Liguori
2008-08-13 22:32               ` Samuel Thibault

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=48A30395.6060706@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.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 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).