Files
cloud-hypervisor/block
Rob Bradford 53ee9ebb77 block: qcow: Only clear DIRTY bit when last QcowDisk destroyed
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>
2026-07-29 10:25:58 +00:00
..