From: Avi Kivity <avi@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Kevin Wolf <kwolf@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qcow2 performance plan
Date: Tue, 14 Sep 2010 18:28:07 +0200 [thread overview]
Message-ID: <4C8FA297.2020807@redhat.com> (raw)
In-Reply-To: <4C8F9FDE.8050004@codemonkey.ws>
On 09/14/2010 06:16 PM, Anthony Liguori wrote:
>
> Right, it should only freeze if the L2 table needs to be allocated,
> not if it only needs to be updated. IOW,
>
> diff --git a/block/qed.c b/block/qed.c
> index 4c4e7a2..0357c03 100644
> --- a/block/qed.c
> +++ b/block/qed.c
> @@ -948,7 +948,7 @@ static void qed_aio_write_data(void *opaque, int ret,
> }
>
> /* Freeze this request if another allocating write is in progress */
> - if (need_alloc) {
> + if (ret == QED_CLUSTER_L1) {
> if (acb != QSIMPLEQ_FIRST(&s->allocating_write_reqs)) {
> QSIMPLEQ_INSERT_TAIL(&s->allocating_write_reqs, acb, next);
> }
>
> It's being a bit more conservative than it needs to be.
Yes, I hit this too. So without this patch, it does serialize all
allocating writes?
If multiple requests need to update pointers in L2, will those updates
generate one write per request, or just two writes (one write from the
first request, another from all those that serialized after it)?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-09-14 16:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 13:07 [Qemu-devel] qcow2 performance plan Avi Kivity
2010-09-14 13:43 ` Anthony Liguori
2010-09-14 15:11 ` Kevin Wolf
2010-09-14 15:20 ` Anthony Liguori
2010-09-14 15:47 ` Kevin Wolf
2010-09-14 16:03 ` Stefan Hajnoczi
2010-09-14 16:16 ` Anthony Liguori
2010-09-14 16:28 ` Avi Kivity [this message]
2010-09-14 17:08 ` Anthony Liguori
2010-09-14 17:23 ` Avi Kivity
2010-09-14 18:58 ` Anthony Liguori
2010-09-14 14:01 ` [Qemu-devel] " Kevin Wolf
2010-09-14 15:14 ` Stefan Hajnoczi
2010-09-14 15:25 ` [Qemu-devel] " Anthony Liguori
2010-09-14 16:30 ` Avi Kivity
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=4C8FA297.2020807@redhat.com \
--to=avi@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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).