From: Stefan Hajnoczi <stefanha@gmail.com>
To: Alberto Garcia <berto@igalia.com>
Cc: sochin jiang <sochin.jiang@huawei.com>,
kwolf@redhat.com, jcody@redhat.com, pbonzini@redhat.com,
mreitz@redhat.com, lina.lulina@huawei.com, lizhengui@huawei.com,
qemu-block@nongnu.org, subo7@huawei.com, eric.fangyi@huawei.com,
zhangshuai13@huawei.com, qemu-devel@nongnu.org,
Manos Pitsidianakis <el13635@mail.ntua.gr>
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2] throttle: fix a qemu crash problem when calling blk_delete
Date: Fri, 3 Nov 2017 14:26:33 +0000 [thread overview]
Message-ID: <20171103142633.GO5078@stefanha-x1.localdomain> (raw)
In-Reply-To: <w5160b3k4c0.fsf@maestria.local.igalia.com>
[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]
On Wed, Oct 25, 2017 at 10:40:47AM +0200, Alberto Garcia wrote:
> On Tue 24 Oct 2017 05:33:51 AM CEST, sochin jiang wrote:
> > --- a/block/throttle-groups.c
> > +++ b/block/throttle-groups.c
> > @@ -576,7 +576,9 @@ void throttle_group_unregister_tgm(ThrottleGroupMember *tgm)
> >
> > /* remove the current tgm from the list */
> > QLIST_REMOVE(tgm, round_robin);
> > - throttle_timers_destroy(&tgm->throttle_timers);
> > + if (throttle_timers_are_initialized(&tgm->throttle_timers)) {
> > + throttle_timers_destroy(&tgm->throttle_timers);
> > + }
> > qemu_mutex_unlock(&tg->lock);
> >
> > throttle_group_unref(&tg->ts);
>
> I don't know what the rest of the people think, but I'm not completely
> convinced that it's a good idea to have an active ThrottleState inside a
> ThrottleGroupMember without timers.
>
> Perhaps in blk_remove_bs() after detaching the AioContext from the BDS
> we can attach the default one (what you would get with
> blk_get_aio_context()).
>
> On the other hand I think that Manos's series to remove the legacy
> throttling code gets rid of BlockBackend.ThrottleGroupMember completely.
What is the status of Manos' series?
It would be good to merge it and then consider currently open throttling
bugs again.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2017-11-03 14:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 3:33 [Qemu-devel] [PATCH v2] throttle: fix a qemu crash problem when calling blk_delete sochin jiang
2017-10-25 8:40 ` Alberto Garcia
2017-11-03 14:26 ` Stefan Hajnoczi [this message]
2017-11-07 20:11 ` [Qemu-devel] [Qemu-block] " Manos Pitsidianakis
2017-11-09 17:12 ` Stefan Hajnoczi
2017-11-10 13:42 ` Alberto Garcia
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=20171103142633.GO5078@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=berto@igalia.com \
--cc=el13635@mail.ntua.gr \
--cc=eric.fangyi@huawei.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=lina.lulina@huawei.com \
--cc=lizhengui@huawei.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sochin.jiang@huawei.com \
--cc=subo7@huawei.com \
--cc=zhangshuai13@huawei.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).