From: Eric Blake <eblake@redhat.com>
To: Alberto Garcia <berto@igalia.com>
Cc: "Qemu-devel@nongnu.org" <Qemu-devel@nongnu.org>,
qemu block <qemu-block@nongnu.org>, Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] help debugging throttle crash
Date: Thu, 6 Apr 2017 13:57:02 -0500 [thread overview]
Message-ID: <ed9025da-bed9-5220-70b6-ef7cfc00d4a2@redhat.com> (raw)
In-Reply-To: <20170403152443.GA20459@igalia.com>
[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]
On 04/03/2017 10:24 AM, Alberto Garcia wrote:
> On Mon, Apr 03, 2017 at 09:07:02AM -0500, Eric Blake wrote:
>
>> At this point, it looks like no one is calling
>> throttle_group_unregister_blk() as a result of the 'device_del',
>> which leaves stale memory around
>
> I see, I can also reproduce this very easily.
>
> I wonder if it's not enough to simply disable I/O limits when a
> BlockBackend is deleted?
Seems to pass my testing. Do you want to submit it as a formal patch, or
shall I?
>
> --- a/block/block-backend.c
> +++ b/block/block-backend.c
> @@ -230,6 +230,9 @@ static void blk_delete(BlockBackend *blk)
> assert(!blk->refcnt);
> assert(!blk->name);
> assert(!blk->dev);
> + if (blk->public.throttle_state) {
> + blk_io_limits_disable(blk);
> + }
> if (blk->root) {
> blk_remove_bs(blk);
> }
>
> Berto
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
prev parent reply other threads:[~2017-04-06 18:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 14:07 [Qemu-devel] help debugging throttle crash Eric Blake
2017-04-03 15:24 ` Alberto Garcia
2017-04-06 18:57 ` Eric Blake [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=ed9025da-bed9-5220-70b6-ef7cfc00d4a2@redhat.com \
--to=eblake@redhat.com \
--cc=Qemu-devel@nongnu.org \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@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).