From: Kevin Wolf <kwolf@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org,
Michael Tokarev <mjt@tls.msk.ru>,
Zhouyi Zhou <yizhouzhou@ict.ac.cn>,
Bruce Rogers <brogers@suse.com>
Subject: Re: [Qemu-devel] fixing qemu-0.1X endless loop in qcow2_alloc_cluster_offset
Date: Mon, 15 Oct 2012 16:46:06 +0200 [thread overview]
Message-ID: <507C21AE.7070307@redhat.com> (raw)
In-Reply-To: <507C1D95.9030402@suse.de>
Am 15.10.2012 16:28, schrieb Andreas Färber:
>> What I'm suggesting (not even compile tested!) is:
>>
>> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
>>
>> diff --git a/block/qcow2.c b/block/qcow2.c
>> index 48e1b95..d665675 100644
>> --- a/block/qcow2.c
>> +++ b/block/qcow2.c
>> @@ -388,10 +388,7 @@ typedef struct QCowAIOCB {
>>
>> static void qcow2_aio_cancel(BlockDriverAIOCB *blockacb)
>> {
>> - QCowAIOCB *acb = container_of(blockacb, QCowAIOCB, common);
>> - if (acb->hd_aiocb)
>> - bdrv_aio_cancel(acb->hd_aiocb);
>> - qemu_aio_release(acb);
>> + qemu_aio_flush();
>> }
>>
>> static AIOPool qcow2_aio_pool = {
>
> Compiles fine. Is there a particular test case to invoke this code path?
As far as I know, the common way to get this were IDE resets. However,
I'm not sure what you need to do with a Linux guest if you want it to
reset the IDE controller...
> Does this attempt to fix the cluster leaks you mentioned as well, or
> just the cluster allocation endless loop?
Instead of cancelling the in-flight requests it waits for their
completion, so in the end we should be in an consistent state without
cluster leaks.
Kevin
next prev parent reply other threads:[~2012-10-15 14:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-13 8:03 [Qemu-devel] fixing qemu-0.1X endless loop in qcow2_alloc_cluster_offset Zhouyi Zhou
2012-05-14 12:20 ` Kevin Wolf
2012-06-12 13:33 ` Andreas Färber
2012-06-12 13:44 ` Kevin Wolf
2012-10-12 15:52 ` Andreas Färber
2012-10-15 9:13 ` Kevin Wolf
2012-10-15 14:28 ` Andreas Färber
2012-10-15 14:46 ` Kevin Wolf [this message]
2012-10-16 3:32 ` 周洲仪
2012-11-09 17:21 ` Andreas Färber
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=507C21AE.7070307@redhat.com \
--to=kwolf@redhat.com \
--cc=afaerber@suse.de \
--cc=brogers@suse.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=yizhouzhou@ict.ac.cn \
/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).