[PATCH 1/2] migration/block-dirty-bitmap: make incoming disabled bitmaps busy

2021-03-22 Thread Vladimir Sementsov-Ogievskiy
Incoming enabled bitmaps are busy, because we do bdrv_dirty_bitmap_create_successor() for them. But disabled bitmaps being migrated are not marked busy, and user can remove them during the incoming migration. Then we may crash in cancel_incoming_locked() when try to remove the bitmap that was alrea

[PATCH 1/2] migration/block-dirty-bitmap: make incoming disabled bitmaps busy

2021-03-19 Thread Vladimir Sementsov-Ogievskiy
Incoming enabled bitmaps are busy, because we do bdrv_dirty_bitmap_create_successor() for them. But disabled bitmaps being migrated are not marked busy, and user can remove them during the incoming migration. Then we may crash in cancel_incoming_locked() when try to remove the bitmap that was alrea