On Wed, Jun 26, 2013 at 01:26:25AM +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, aio_bh_poll() can not run in
> parallel yet.
> 
> Signed-off-by: Liu Ping Fan <pingf...@linux.vnet.ibm.com>
> 
> ---------
> v4->v5
>   fix some grammar issue
> v3->v4
>   resolve memory order of bh->idle and ->scheduled
>   add comments for qemu_bh_delete/cancel
> ---
>  async.c             | 32 ++++++++++++++++++++++++++++++--
>  include/block/aio.h |  7 +++++++
>  2 files changed, 37 insertions(+), 2 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>

Reply via email to