Received: from eggs.gnu.org ([2001:4830:134:3::10]:50896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQCbj-0006d5-FT for qemu-devel@nongnu.org; Wed, 28 Jun 2017 09:02:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQCbi-0008C6-IC for qemu-devel@nongnu.org; Wed, 28 Jun 2017 09:02:11 -0400 References: <20170628120530.31251-1-vsementsov@virtuozzo.com> From: Paolo Bonzini Message-ID: <969a2b68-c6ec-dee7-15cb-2a2bd9bfc0fd@redhat.com> Date: Wed, 28 Jun 2017 15:01:43 +0200 MIME-Version: 1.0 In-Reply-To: <20170628120530.31251-1-vsementsov@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v22 00/30] qcow2: persistent dirty bitmaps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy , qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, armbru@redhat.com, eblake@redhat.com, jsnow@redhat.com, famz@redhat.com, den@openvz.org, stefanha@redhat.com On 28/06/2017 14:05, Vladimir Sementsov-Ogievskiy wrote: > Rebase on master, so changes, mostly related to new dirty bitmaps mutex: > > 10: - asserts now in bdrv_{re,}set_dirty_bitmap_locked functions. > - also add assert into bdrv_undo_clear_dirty_bitmap (the only change, not related to rebase) > - add mutex lock into bdrv_dirty_bitmap_set_readonly (as it changes bitmap list, > so the lock should be taken) > - return instead of go-to in qmp_block_dirty_bitmap_clear > - in dirty-bitmaps.h, move bdrv_dirty_bitmap_set_readonly before block > "Functions that require manual locking", move > bdrv_dirty_bitmap_readonly and bdrv_has_readonly_bitmaps into this block > 15: - add mutex lock/unlock into bdrv_dirty_bitmap_set_autoload > - in dirty-bitmaps.h, move bdrv_dirty_bitmap_set_autoload before block > "Functions that require manual locking", move > bdrv_dirty_bitmap_get_autoload into this block > 17: - add mutex lock/unlock into bdrv_dirty_bitmap_set_persistance > - in dirty-bitmaps.h, move bdrv_dirty_bitmap_set_persistance before block > "Functions that require manual locking", move > bdrv_dirty_bitmap_get_persistance and > bdrv_has_changed_persistent_bitmaps into this block > 18: in dirty-bitmaps.h, move bdrv_dirty_bitmap_next into block > "Functions that require manual locking". (do not remove r-b, as it is > just one empty line removed before function declaration) > 23: return instead of go-to in qmp_block_dirty_bitmap_add > 24: return instead of go-to in qmp_block_dirty_bitmap_add > 25: - return instead of go-to > - remove aio_context_acquire/release calls > - no aio_context parameter for block_dirty_bitmap_lookup > - in dirty-bitmaps.h, move bdrv_dirty_bitmap_sha256 into block > "Functions that require manual locking". > 29: - return instead of go-to in qmp_block_dirty_bitmap_remove All looks good, thanks. I'll rebase my own fixes on top of these patches, no need to have you respin them. Paolo