All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] dm-qcow2: fail an image write that returns 0 bytes instead of looping
Date: Mon, 30 Nov 2026 16:02:25 +0100	[thread overview]
Message-ID: <179605094589.1088513.10189473957392821141.b4-review@b4> (raw)
In-Reply-To: <20261123153817.128600-1-den@openvz.org>

Applying with these fixes on my side:

- message: "async_dio is off" -> "async_dio and writeback_cache are
  both off", "as FUSE with async_dio" -> "as asynchronous FUSE direct
  I/O";
- message: the first paragraph split into what the code does, which
  file system returns 0 bytes and what the guest sees, which now also
  says that a suspend of the device waits for the stuck write.

On Mon, 23 Nov 2026 16:38:17 +0100, Denis V. Lunev wrote:
> FOPEN_DIRECT_IO, async_dio is off and the daemon replies 0 bytes
> written.

In the vz tree fuse_direct_IO() sets io->async = async_dio |
writeback_cache, so a writeback_cache mount takes the asynchronous
path and already fails such a write with -EIO.

> written. The dm-qcow2 worker then resubmits the same write forever,
> and the guest write never completes.

The stuck qio keeps its inflight reference, so a suspend (snapshot,
resize, CT stop) hangs on it as well.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

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

  parent reply	other threads:[~2026-11-30 15:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 15:38 Denis V. Lunev
2026-11-23 15:49 ` no-reply
2026-11-25  8:15 ` Alexander Ivanov
2026-11-25  9:24 ` Vasileios Almpanis
2026-11-30 15:02 ` Konstantin Khorenko [this message]
2026-11-30 15:02 ` 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=179605094589.1088513.10189473957392821141.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=den@openvz.org \
    --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.