All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] qcow2: Fix corruption on discard during write with COW
@ 2026-04-27 17:05 Kevin Wolf
  2026-04-27 17:05 ` [PATCH 1/4] commit: Drain nodes across all of bdrv_commit() Kevin Wolf
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Kevin Wolf @ 2026-04-27 17:05 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, hreitz, den, stefanha, qemu-stable, qemu-devel

This is an alternative fix for the corruption problem reported by Denis:
https://patchew.org/QEMU/20260421155628.3600671-1-den@openvz.org/

I think it really is a qcow2 level bug and should be fixed on the qcow2
level. The test is also more targeted than just doing random I/O for a
while, and therefore runs faster and documents the problem better.

Kevin Wolf (4):
  commit: Drain nodes across all of bdrv_commit()
  qemu-io: Add 'aio_discard' command
  qcow2: Fix corruption on discard during write with COW
  iotests/046: Test that discard/write_zeroes wait for dependencies

 block/commit.c             |  10 +++-
 block/qcow2-cluster.c      |  52 ++++++++++++++++-
 qemu-io-cmds.c             | 113 +++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/046     |  46 +++++++++++++++
 tests/qemu-iotests/046.out |  36 ++++++++++++
 5 files changed, 252 insertions(+), 5 deletions(-)

-- 
2.53.0



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2026-05-21 16:16 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-27 17:05 [PATCH 0/4] qcow2: Fix corruption on discard during write with COW Kevin Wolf
2026-04-27 17:05 ` [PATCH 1/4] commit: Drain nodes across all of bdrv_commit() Kevin Wolf
2026-04-29 15:06   ` Fiona Ebner
2026-05-12 12:16     ` Kevin Wolf
2026-05-13 15:28       ` Fiona Ebner
2026-04-27 17:05 ` [PATCH 2/4] qemu-io: Add 'aio_discard' command Kevin Wolf
2026-04-28 10:59   ` Denis V. Lunev
2026-04-27 17:05 ` [PATCH 3/4] qcow2: Fix corruption on discard during write with COW Kevin Wolf
2026-04-29 15:28   ` Fiona Ebner
2026-05-12 12:22     ` Kevin Wolf
2026-05-13 15:34       ` Fiona Ebner
2026-05-21 12:12   ` Fiona Ebner
2026-05-21 13:46     ` Kevin Wolf
2026-05-21 14:18       ` Fiona Ebner
2026-05-21 14:35         ` Kevin Wolf
2026-05-21 15:14           ` Fiona Ebner
2026-05-21 16:14             ` Thomas Lamprecht
2026-04-27 17:05 ` [PATCH 4/4] iotests/046: Test that discard/write_zeroes wait for dependencies Kevin Wolf
2026-04-28 11:00 ` [PATCH 0/4] qcow2: Fix corruption on discard during write with COW Denis V. Lunev

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.