[Devel] [PATCH hci-8.1 v3 2/8] dm-qcow2: prepare process_one_qio() for fastpath

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Fri Nov 13 14:26:03 MSK 2026


> dm-qcow2 heavily relies on main kwork do_qcow2_work() being
> sequential. All metadata change happens there and cannot
> run in parallel. Unfortunately that caps dm-qcow2 performance.
> But if the request does not require metadata changes we should
> be able to immediately dispatch it.
> process_one_qio() and handle_metadata() already know what to
> do: just add a fast flag to process_one_qio(), passed as
> avoid_metadata_changes to handle_metadata(), and return codes.
> While at it, just return in handle_metadata() instead of
> setting ret to 0 and jumping to if (ret < 0) label.
> 
> Also pass the flag to parse_metadata() and return to the slow path
> before it looks up R1/R2 pages. They are needed only by COW writes
> and cluster unmapping discards, which go to the slow path anyway.
> Besides the useless lookup, R1 is unstable outside main kwork: an R1
> [ ... ]
> with wpc_readers.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-95494
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261113111126.793039-1-andrey.zhadchenko@virtuozzo.com?part=2




More information about the Devel mailing list