mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Multiple QcowDisk/Qcow2Backing can share references to the same QcowMetadata via an Arc. Unfortunately the .shutdown() which clears the DIRTY bit was being called when the first of those was dropped. Instead move this to the drop of the metadata itself. Now only once all references to the metadata are dropped then we can safely set the DIRTY bit. Assisted-by: Codex:GPT-5.6 Signed-off-by: Rob Bradford <rbradford@meta.com>