block: fix 'savevm' hang with -object iothread
Status from this message: Thanks, applied to the block branch.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 8 repliesApplied
- v24 patches 2 repliesSuperseded
- v13 patches 11 repliesSuperseded
Changes in v3 from the cover letter
* Add missing bdrv_drain_all_end() in error code paths [Kevin]
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | block: count bdrv_co_rw_vmstate() requestsblock/ | +12 | 0 replies | |
| 2/4 | block: use BDRV_POLL_WHILE() in bdrv_rw_vmstate()block/ | +1 | 0 replies | |
| 3/4 | migration: avoid recursive AioContext locking in save_vmstate()migration/ | +11 | 4 replies | |
| 4/4 | migration: use bdrv_drain_all_begin/end() instead bdrv_drain_all()migration/ | +15 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Eric Blake | Paolo Bonzini |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | R-b |
| 3/4 | R-b | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v3 0/4] block: fix 'savevm' hang with -object iothread
v3:
* Add missing bdrv_drain_all_end() in error code paths [Kevin]
v2:
* New patch to use bdrv_drain_all_begin/end() in savevm/loadvm [Kevin] (All other patches unchanged)
The 'savevm' command hangs when -object iothread is used. See patches for details, but basically the vmstate read/write code didn't conform to the latest block layer locking rules.
Stefan Hajnoczi (4):
block: count bdrv_co_rw_vmstate() requests
block: use BDRV_POLL_WHILE() in bdrv_rw_vmstate()
migration: avoid recursive AioContext locking in save_vmstate()
migration: use bdrv_drain_all_begin/end() instead bdrv_drain_all()
block/io.c | 21 +++++++++++++-------- migration/savevm.c | 30 ++++++++++++++++++++++++++---- 2 files changed, 39 insertions(+), 12 deletions(-)
Signature · 1 line
2.9.3