[Devel] [PATCH hci-8.2] dm-qcow2: fail an image write that returns 0 bytes instead of looping

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 30 18:02:25 MSK 2026


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



More information about the Devel mailing list