From: Avi Kivity <avi@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: stefanha@gmail.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4 2/3] qcow2: Use QcowCache
Date: Wed, 09 Feb 2011 13:19:35 +0200 [thread overview]
Message-ID: <4D527847.9070400@redhat.com> (raw)
In-Reply-To: <1295543412-24012-3-git-send-email-kwolf@redhat.com>
On 01/20/2011 07:10 PM, Kevin Wolf wrote:
> Use the new functions of qcow2-cache.c for everything that works on refcount
> block and L2 tables.
>
While autotesting qemu-kvm's stable-0.14 branch, this commit causes
failures. The scenario is:
- install OS
- reboot
- hang at GRUB prompt
- qemu-img reports hundreds of leaked clusters
The actual commit I am testing is in qemu-kvm.git
qcow2-qcowcache-failure (tag). The test runs with -drive ,cache=unsafe.
> @@ -719,7 +727,13 @@ static void qcow2_close(BlockDriverState *bs)
> {
> BDRVQcowState *s = bs->opaque;
> qemu_free(s->l1_table);
> - qemu_free(s->l2_cache);
> +
> + qcow2_cache_flush(bs, s->l2_table_cache);
> + qcow2_cache_flush(bs, s->refcount_block_cache);
> +
> + qcow2_cache_destroy(bs, s->l2_table_cache);
> + qcow2_cache_destroy(bs, s->refcount_block_cache);
> +
> qemu_free(s->cluster_cache);
> qemu_free(s->cluster_data);
> qcow2_refcount_close(bs);
This is of course the immediate suspect, but it appears correct.
Perhaps it isn't called, or maybe in the wrong place?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-02-09 11:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 17:10 [Qemu-devel] [PATCH v4 0/3] qcow2 metadata cache Kevin Wolf
2011-01-20 17:10 ` [Qemu-devel] [PATCH v4 1/3] qcow2: Add QcowCache Kevin Wolf
2011-01-24 14:00 ` Stefan Hajnoczi
2011-01-20 17:10 ` [Qemu-devel] [PATCH v4 2/3] qcow2: Use QcowCache Kevin Wolf
[not found] ` <AANLkTimeRQVVeNnRbaiRNQ-SbExyJDZiuteBP7wfv9He@mail.gmail.com>
2011-01-24 14:54 ` Kevin Wolf
2011-01-24 15:26 ` Stefan Hajnoczi
2011-01-24 15:36 ` Kevin Wolf
2011-01-24 15:39 ` Stefan Hajnoczi
2011-02-09 11:19 ` Avi Kivity [this message]
2011-02-09 11:23 ` Avi Kivity
2011-01-20 17:10 ` [Qemu-devel] [PATCH v4 3/3] qcow2: Batch flushes for COW Kevin Wolf
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=4D527847.9070400@redhat.com \
--to=avi@redhat.com \
--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 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.