[Devel] [PATCH hci-8.2 4/9] dm-qcow2: map fast path writes without md_pages_lock

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 25 14:19:44 MSK 2026


I won't apply this version, please send v2 with the changes below.

- Fix the reason for the old writer_gen case: item 5 of the cover
  letter reply.

On Wed, 25 Nov 2026 02:25:20 +0100, Denis V. Lunev wrote:
> sees the bump and backs off. If it reads the old one, the discard
> waits for it as for any earlier write.

When another discard switched writer_gen, this discard does not wait
for the old generation. The write is still safe because this discard
holds the lock bit on the same L2 page, and its own md->gen bump makes
the recheck fail. Please say that here and next to inc_writers().

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list