Partially based on the proposal of Andrey in https://patchew.org/QEMU/[email protected]/ Split up this from the rest might get it merged a bit quicker hopefully :)
Since the implementation of discard-no-unref, we did not queue the discards correctly when discard-no-unref was enabled. Jean-Louis Dupond (2): qcow2: rename update_refcount_discard to queue_discard qcow2: put discards in discard queue when discard-no-unref is enabled block/qcow2-cluster.c | 16 ++++++---------- block/qcow2-refcount.c | 25 +++++++++++++++++++++---- block/qcow2.h | 4 ++++ 3 files changed, 31 insertions(+), 14 deletions(-) -- 2.49.0
