[Devel] [PATCH hci-8.2] dm-qcow2: associate worker kthread with request blkcg on submit
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Dec 1 17:29:48 MSK 2026
I won't apply this version, please send v2 with the changes below.
The walk itself is fine: every flagged qio points to a live parent,
and rq->bio->bi_blkg holds the css while the child is submitted.
- flag aux_qio in prepare_backward_merge() too
- say in the message what changes for the host disk and what stays
in the root blkcg
- Jira URL: https://virtuozzo.atlassian.net/browse/VSTOR-143115
On Tue, 1 Dec 2026 16:52:05 +0300, Andrey Zhadchenko wrote:
> Mark split, compressed-read, and COW child qios whose endio_cb_data
> points to a parent qio with QIO_HAS_PARENT_FL so qio_blkcg_css() can
aux_qio in prepare_backward_merge() has endio_cb_data = *qio as well
and is not flagged, so a backward merge copy started by a guest read
goes to the root blkcg, and the same copy started by a write goes to
the Container. The list here also misses the sliced read and write
children the patch flags.
The message should also say:
- the Container's limits and weights on the host disk now apply to
its image I/O, COW included, and io.stat of the Container shows it;
- with io.cost or io.latency on the host disk a bio over budget puts
the shared tgt->wq worker to sleep, and the other qios of that
batch (other Containers, host I/O, the metadata writeback) wait
with it; io.max only queues the bio;
- metadata reads and writeback, service merge qios and buffered
fallbacks stay in the root blkcg.
dm-ploop has the nokblkcg table argument to turn this off. Does
dm-qcow2 need the same, or is it not used anywhere?
> https://virtuozzo.atlassian.net/jira/browse/VSTOR-143115
The tracker link form in vz commits is
https://virtuozzo.atlassian.net/browse/VSTOR-143115
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list