[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant |
Date: |
Tue, 18 Jun 2013 11:31:07 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jun 18, 2013 at 10:19:40AM +0800, liu ping fan wrote:
> On Mon, Jun 17, 2013 at 11:28 PM, Stefan Hajnoczi <address@hidden> wrote:
> > On Sun, Jun 16, 2013 at 07:21:21PM +0800, Liu Ping Fan wrote:
> > Why lock bh_lock before assigning bh->next? Could you lock the mutex
> > here and then drop the smp_wmb() since the pthread function already does
> > that?
> >
> As Paolo's explain, it will open race gap for writers.
Right, thanks!
[Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, Liu Ping Fan, 2013/06/16
Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, mdroth, 2013/06/18
- Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, mdroth, 2013/06/18
- Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, Paolo Bonzini, 2013/06/18
- Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, mdroth, 2013/06/18
- Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, Paolo Bonzini, 2013/06/19
- Re: [Qemu-devel] [PATCH v2 2/2] QEMUBH: make AioContext's bh re-entrant, Stefan Hajnoczi, 2013/06/20
Re: [Qemu-devel] [PATCH v2 0/2] make AioContext's bh re-entrant, Paolo Bonzini, 2013/06/17