Re: [Qemu-devel] [PATCH v4] QEMUBH: make AioContext's bh re-entrant

2013-06-24 Thread Stefan Hajnoczi
On Mon, Jun 24, 2013 at 05:54:26PM +0800, Liu Ping Fan wrote: > BH will be used outside big lock, so introduce lock to protect > between the writers, ie, bh's adders and deleter. The lock only > affects the writers and bh's callback does not take this extra lock. > Note that for the same AioContext

[Qemu-devel] [PATCH v4] QEMUBH: make AioContext's bh re-entrant

2013-06-23 Thread Liu Ping Fan
BH will be used outside big lock, so introduce lock to protect between the writers, ie, bh's adders and deleter. The lock only affects the writers and bh's callback does not take this extra lock. Note that for the same AioContext, aio_bh_poll() can not run in parallel yet. Signed-off-by: Liu Ping