dirty-bitmap: fix double lock on bitmap enabling
commit58f72b965e9e1820d246329461216c4d13140122
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 4 Jul 2018 06:12:49 +0000 (4 02:12 -0400)
committerJohn Snow <jsnow@redhat.com>
Wed, 4 Jul 2018 06:12:49 +0000 (4 02:12 -0400)
treec07b126cfe42a6f885d5f1412d9b745c92555fcd
parent92bcea40d3aac62853e60426bd109b748d4d1cd2
dirty-bitmap: fix double lock on bitmap enabling

Bitmap lock/unlock were added to bdrv_enable_dirty_bitmap in
8b1402ce80d, but some places were not updated correspondingly, which
leads to trying to take this lock twice, which is dead-lock. Fix this.

Actually, iotest 199 (about dirty bitmap postcopy migration) is broken
now, and this fixes it.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20180625165745.25259-3-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
block/dirty-bitmap.c
migration/block-dirty-bitmap.c