From: Fam Zheng <famz@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
uobergfe@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2] aio: Fix use-after-free in cancellation path
Date: Wed, 21 May 2014 10:40:42 +0800 [thread overview]
Message-ID: <20140521024042.GD18886@T430.nay.redhat.com> (raw)
In-Reply-To: <537B6042.10500@redhat.com>
On Tue, 05/20 16:01, Paolo Bonzini wrote:
> Il 20/05/2014 15:16, Stefan Hajnoczi ha scritto:
> >On Tue, May 20, 2014 at 10:00:47AM +0800, Fam Zheng wrote:
> >>diff --git a/thread-pool.c b/thread-pool.c
> >>index fbdd3ff..d4984ba 100644
> >>--- a/thread-pool.c
> >>+++ b/thread-pool.c
> >>@@ -223,6 +223,7 @@ static void thread_pool_cancel(BlockDriverAIOCB *acb)
> >> }
> >> pool->pending_cancellations--;
> >> }
> >>+ event_notifier_ready(&pool->notifier);
> >> qemu_mutex_unlock(&pool->lock);
> >> }
> >
> >event_notifier_ready() doesn't need pool->lock. Can you call it outside
> >the lock or am I missing something?
>
> Yes, in fact I'm a bit wary of calling it inside the lock.
OK, thanks.
Fam
prev parent reply other threads:[~2014-05-21 2:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-20 2:00 [Qemu-devel] [PATCH v2] aio: Fix use-after-free in cancellation path Fam Zheng
2014-05-20 13:16 ` Stefan Hajnoczi
2014-05-20 14:01 ` Paolo Bonzini
2014-05-21 2:40 ` Fam Zheng [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=20140521024042.GD18886@T430.nay.redhat.com \
--to=famz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=uobergfe@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).