Skip to content

block, migration: improve debugging of migration bdrv_flush failure

Daniel P. Berrangé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5migration: add trace point when vm_stop_force_state failsmigration/migration.c migration/trace-events+2 -01 reply
2/5softmmu: add trace point when bdrv_flush_all failssoftmmu/cpus.c softmmu/trace-events+9 -11 reply
3/5block: preserve errno from fdatasync failuresblock/file-posix.c+3 -30 replies
4/5block: add trace point when fdatasync failsblock/file-posix.c block/trace-events+3 -01 reply
5/5block: remove duplicate trace.h includeblock/file-posix.c+0 -21 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDr. David Alan GilbertConnor Kuehl
SeriesR-b
1/5R-b
2/5R-b
3/5
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] block, migration: improve debugging of migration bdrv_flush failure

I spent a while debugging a tricky migration failure today which was ultimately caused by fdatasync() getting EACCESS. The existing probes were not sufficient to diagnose this, so I had to resort to GDB. This improves probes and block error reporting to make future diagnosis possible without GDB.

Daniel P. Berrangé (5):
migration: add trace point when vm_stop_force_state fails
softmmu: add trace point when bdrv_flush_all fails
block: preserve errno from fdatasync failures
block: add trace point when fdatasync fails
block: remove duplicate trace.h include

 block/file-posix.c     | 10 +++++-----
 block/trace-events     |  1 +
 migration/migration.c  |  1 +
 migration/trace-events |  1 +
 softmmu/cpus.c         |  7 ++++++-
 softmmu/trace-events   |  3 +++
 6 files changed, 17 insertions(+), 6 deletions(-)
Signature · 1 line
2.30.2