Skip to content

util/async: print leaked BH name when AioContext finalizes

Stefan Hajnoczi qemu-devel 1 version Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2util/async: add a human-readable name to BHs for debugginginclude/block/aio.h include/qemu/main-loop.h tests/unit/ptimer-test-stubs.c +2 more+41 -91 reply
2/2util/async: print leaked BH name when AioContext finalizesutil/async.c+14 -20 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFam ZhengPhilippe Mathieu-Daudé
SeriesR-b
1/2R-b
2/2

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/2] util/async: print leaked BH name when AioContext finalizes

Eric Ernst and I debugged a BH leak and it was more involved than it should be. The problem is that BHs don't have a human-readable identifier, so low-level debugging techniques and inferences about the code are required to figure out which BH was leaked in production environments without easy debug access.

The leak ended up already being fixed upstream but let's improve diagnostics for leaked BHs so that this becomes quick and easy in the future.

Stefan Hajnoczi (2):
util/async: add a human-readable name to BHs for debugging util/async: print leaked BH name when AioContext finalizes

 include/block/aio.h            | 31 ++++++++++++++++++++++++++++---
 include/qemu/main-loop.h       |  4 +++-
 tests/unit/ptimer-test-stubs.c |  2 +-
 util/async.c                   | 25 +++++++++++++++++++++----
 util/main-loop.c               |  4 ++--
 5 files changed, 55 insertions(+), 11 deletions(-)
Signature · 1 line
2.30.2