qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL v3 18/23] block: introduce dirty_bitmap_mutex


From: Fam Zheng
Subject: Re: [Qemu-devel] [PULL v3 18/23] block: introduce dirty_bitmap_mutex
Date: Fri, 16 Jun 2017 08:12:58 +0800
User-agent: Mutt/1.8.0 (2017-02-23)

On Thu, 06/08 19:56, Fam Zheng wrote:
> From: Paolo Bonzini <address@hidden>
> 
> It protects only the list of dirty bitmaps; in the next patch we will
> also protect their content.
> 
> Reviewed-by: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> Message-Id: <address@hidden>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
>  block/dirty-bitmap.c      | 44 +++++++++++++++++++++++++++++++++++++++++++-
>  block/mirror.c            |  3 ++-
>  blockdev.c                | 44 +++++++-------------------------------------
>  include/block/block_int.h |  5 +++++
>  migration/block.c         |  6 ------
>  5 files changed, 57 insertions(+), 45 deletions(-)

Squashing in this hunk for v4 (and have my fingers crossed :)

diff --git a/block.c b/block.c
index XXXXXXX..XXXXXXX XXXXXX
--- a/block.c
+++ b/block.c
@@ -XXX,X +XXX,X @@ BlockDriverState *bdrv_new(void)
     }
     notifier_with_return_list_init(&bs->before_write_notifiers);
     qemu_co_mutex_init(&bs->reqs_lock);
+    qemu_mutex_init(&bs->dirty_bitmap_mutex);
     bs->refcnt = 1;
     bs->aio_context = qemu_get_aio_context();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]