OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 6/7] dm-qcow2: add the report_enospc table argument
Date: Fri, 27 Nov 2026 12:51:34 +0100	[thread overview]
Message-ID: <179578029415.10222.8431406961090900060.b4-review@b4> (raw)
In-Reply-To: <20261127111550.1151546-7-alexander.ivanov@virtuozzo.com>

Items 3, 4 and 5 of the cover letter reply.

On Fri, 27 Nov 2026 12:15:49 +0100, Alexander Ivanov wrote:
> +		if (READ_ONCE(tgt->event_enospc))
> +			*p++ = 's';

Drop the 's' flag. With report_enospc set event_enospc is never set,
so 's' never shows next to 'r', and nothing reads it: libploop parses
only the first field of the qcow2 status line. If something is to read
it, send it as its own patch and name the reader.

> A flag set by a message would be lost on every table reload, such as
> a snapshot or a migration, as the reload creates a new target. So it
> is a table argument, which userspace passes with every table it loads.

A table argument is lost the same way when userspace does not pass it.
Name the reloads libploop does on its own (snapshot, grow and merge
through dm_reload_imglist(), the push-backup switch) and say they all
must pass it. Also say that the status line of every qcow2 device gets
the new field ("1 v3 128" becomes "1 v3 128 o" or "... r"), and that
the target version goes to 1.1.0, which userspace checks before
passing the argument: an older kernel rejects the table.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

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

  reply	other threads:[~2026-11-27 11:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 11:15 [Devel] [PATCH hci-8.2 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks Alexander Ivanov
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 1/7] dm-qcow2: always resubmit delayed ENOSPC requests in presuspend Alexander Ivanov
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 2/7] dm-qcow2: arm the ENOSPC timer only for the first delayed request Alexander Ivanov
2026-11-27 11:51   ` Konstantin Khorenko
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 3/7] dm-qcow2: drop the WARN on a read failing with ENOSPC Alexander Ivanov
2026-11-27 11:51   ` Konstantin Khorenko
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 4/7] dm-ploop: arm the ENOSPC timer only for the first delayed request Alexander Ivanov
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 5/7] dm-ploop: drop the WARN on a non-write request failing with ENOSPC Alexander Ivanov
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 6/7] dm-qcow2: add the report_enospc table argument Alexander Ivanov
2026-11-27 11:51   ` Konstantin Khorenko [this message]
2026-11-27 11:15 ` [Devel] [PATCH hci-8.2 7/7] dm-ploop: " Alexander Ivanov
2026-11-27 11:51   ` Konstantin Khorenko
2026-11-27 11:51 ` [Devel] [PATCH hci-8.2 0/7] dm-qcow2, dm-ploop: report ENOSPC at once for vhost-blk disks Konstantin Khorenko
2026-11-30  9:14   ` Alexander Ivanov
2026-11-30 16:27     ` Konstantin Khorenko

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=179578029415.10222.8431406961090900060.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=alexander.ivanov@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox