]> git.proxmox.com Git - mirror_qemu.git/commit - block/dirty-bitmap.c
block/dirty-bitmap: explicitly lock bitmaps with successors
authorJohn Snow <jsnow@redhat.com>
Tue, 12 Mar 2019 16:05:48 +0000 (12:05 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 12 Mar 2019 16:05:48 +0000 (12:05 -0400)
commit21d2376f264bcaa1692bd71ab1f99b9b0ff5afbf
tree57b734af48edcfcde0e6cf681a7ec55ed598b089
parent3b78a92776bf1199b6864f2f38d9d341fb741f36
block/dirty-bitmap: explicitly lock bitmaps with successors

Instead of implying a user_locked/busy status, make it explicit.
Now, bitmaps in use by migration, NBD or backup operations
are all treated the same way with the same code paths.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190223000614.13894-7-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
block/dirty-bitmap.c