From: Stefan Hajnoczi <stefanha@gmail.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-2.0] qcow2: link all L2 meta updates in preallocate()
Date: Tue, 1 Apr 2014 15:48:54 +0200 [thread overview]
Message-ID: <20140401134854.GA7972@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1396343577-10563-1-git-send-email-stefanha@redhat.com>
On Tue, Apr 01, 2014 at 11:12:57AM +0200, Stefan Hajnoczi wrote:
> preallocate() only links the first QCowL2Meta's data clusters into the
> L2 table and ignores any chained QCowL2Metas in the linked list.
>
> Chains of QCowL2Meta structs are built up when contiguous clusters span
> L2 tables. Each QCowL2Meta describes one L2 table update. This is a
> rare case in preallocate() but can happen.
>
> This patch fixes preallocate() by iterating over the whole list of
> QCowL2Metas. Compare with the qcow2_co_writev() function's
> implementation, which is similar but also also handles request
> dependencies. preallocate() only performs one allocation at a time so
> there can be no dependencies.
>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> block/qcow2.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Discussed with Kevin and applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
prev parent reply other threads:[~2014-04-01 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 9:12 [Qemu-devel] [PATCH for-2.0] qcow2: link all L2 meta updates in preallocate() Stefan Hajnoczi
2014-04-01 13:48 ` Stefan Hajnoczi [this message]
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=20140401134854.GA7972@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).