[Devel] [PATCH hci-8.2 3/4] dm-qcow2: delay a backing-file COW while its L2 entry awaits writeback

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 19 19:33:44 MSK 2026


Applying with these fixes on my side:

- Items 1 and 2 of the cover letter reply: reworded the last sentence
  and split the first paragraph of the message.

On Thu, 19 Nov 2026 02:08:53 +0100, Denis V. Lunev wrote:
> Delay the COW while its L2 entry or the subcluster bitmap is dirty, as
> prepare_cluster_discard() does. Only a write that partly covers a
> subcluster of a cluster allocated in the same worker pass waits longer.

The bitmap is dirty also when the cluster was allocated long ago and
another write of the same pass filled one of its subclusters, and the
COW has to wait then too. Now: "Only a write that partly covers an
unallocated subcluster of a cluster whose L2 entry changed in the same
worker pass waits longer."

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list