Skip to contentSkip to conversation

Block patches

GIT PULL Applied Stefan Hajnoczi 1 participant 4 messages Jun 8 Block layer

lore
Share & tools
lore
#0 lore raw

The following changes since commit 3390aba56c354637eccd2d5ab5fd6efc2f026f06:

Merge tag 'qom-tests-pr-v2' of https://gitlab.com/marcandre.lureau/qemu into staging (2026-06-06 14:47:04 -0400)

are available in the Git repository at:

https://gitlab.com/stefanha/qemu.git tags/block-pull-request

for you to fetch changes up to 3f3ba1408b52a5ffc10096936451489fe7d066d7:

MAINTAINERS: remove Julia Suvorova from Linux io_uring (2026-06-08 08:38:30 -0400)

----------------------------------------------------------------
Pull request

----------------------------------------------------------------

Fiona Ebner (1):
block/io: fallback to bounce buffer if BLKZEROOUT is not supported
because of alignment

Stefan Hajnoczi (1):
MAINTAINERS: remove Julia Suvorova from Linux io_uring

 MAINTAINERS |  1 -
 block/io.c  | 13 ++++++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.54.0
#1 lore raw

[PULL 1/2] block/io: fallback to bounce buffer if BLKZEROOUT is not supported because of alignment

From: Fiona Ebner <[email protected]>

Commit 5634622bcb ("file-posix: allow BLKZEROOUT with -t writeback") enables the BLKZEROOUT ioctl when using 'writeback' cache, regressing certain 'qemu-img convert' invocations, because of a pre-existing issue. Namely, the BLKZEROOUT ioctl might fail with errno EINVAL when the request is shorter than the block size of the block device. Fallback to the bounce buffer, similar to when the ioctl is not supported at all, rather than treating such an error as fatal.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3257
Resolves: https://bugzilla.proxmox.com/show_bug.cgi?id=7197

Message-ID: <[email protected]> [Added TODO comment describing a larger fix that could be implemented in the future.
--Stefan]

---
 block/io.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
block/io.c +12 -1
index e8fb4ede4d..6c0bbdcf1e 100644
@@ -1918,7 +1918,18 @@ bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes,
             assert(!bs->supported_zero_flags);
         }
 
-        if (ret == -ENOTSUP && !(flags & BDRV_REQ_NO_FALLBACK)) {
+        /*
+         * TODO The ret == -EINVAL && num < alignment case is a workaround for
+         * when request_alignment is 1 on files with cache=writeback. The Linux
+         * ioctl(BLKZEROOUT) requires block alignment and will fail with
+         * EINVAL. The block layer should align the request to
+         * write_zeroes_alignment instead of trying the syscall, failing, and
+         * falling back to a bounce buffer. Doing that is not easy so for now
+         * we use a bounce buffer:
+         * https://lore.kernel.org/qemu-devel/[email protected]/
+         */
+        if ((ret == -ENOTSUP || (ret == -EINVAL && num < alignment)) &&
+            !(flags & BDRV_REQ_NO_FALLBACK)) {
             /* Fall back to bounce buffer if write zeroes is unsupported */
             BdrvRequestFlags write_flags = flags & ~BDRV_REQ_ZERO_WRITE;
 
Signature · 1 line
2.54.0
#2 lore raw

[PULL 2/2] MAINTAINERS: remove Julia Suvorova from Linux io_uring

In reply to Stefan Hajnoczi

Julia's email is bouncing because she no longer works for Red Hat. She has not responded to when asked whether she wishes to update her email address. Remove her old email address for now.

Message-id: [email protected]

---
 MAINTAINERS | 1 -
 1 file changed, 1 deletion(-)
MAINTAINERS +0 -1
index 79ecac16fe..748ec77beb 100644
@@ -4346,7 +4346,6 @@ F: block/file-win32.c
 F: block/win32-aio.c
 
 Linux io_uring
-M: Julia Suvorova <[email protected]>
 M: Stefan Hajnoczi <[email protected]>
 R: Stefano Garzarella <[email protected]>
 L: [email protected]
Signature · 1 line
2.54.0