All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Andrey Zhadchenko <andrey.zhadchenko@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] dm-qcow2: associate worker kthread with request blkcg on submit
Date: Tue, 01 Dec 2026 15:29:48 +0100	[thread overview]
Message-ID: <179613538891.21572.9388359440433073901.b4-review@b4> (raw)
In-Reply-To: <20261201135205.163133-1-andrey.zhadchenko@virtuozzo.com>

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

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

      parent reply	other threads:[~2026-12-01 14:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 13:52 Andrey Zhadchenko
2026-12-01 14:04 ` no-reply
2026-12-01 14:29 ` Konstantin Khorenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179613538891.21572.9388359440433073901.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=andrey.zhadchenko@virtuozzo.com \
    --cc=devel@openvz.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.