[Devel] [PATCH hci-8.2 1/9] dm-qcow2: move md_pages_lock off the deferred_lock cache line
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:05:11 MSK 2026
> From: Denis V. Lunev <den at openvz.org>
>
> Every request submitted to the device takes deferred_lock in
> qcow2_submit_embedded_qio(), and every metadata parse takes
> md_pages_lock in parse_metadata(). With the fast path both run on all
> submitting CPUs at once. The two locks share a cache line, so each
> one's traffic bounces the line under the other one's holders, and the
> cost grows with the number of submitting CPUs.
>
> Give md_pages_lock a cache line of its own and keep each lock next to
> the lists it protects: the qio queues with deferred_lock, the discard
> wait list and the writeback batch lists with md_pages_lock.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-95494
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Denis V. Lunev <den at openvz.org>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261125012525.681662-1-den@openvz.org?part=1
More information about the Devel
mailing list