Skip to content

block: pause block jobs for bdrv_drain_begin/end

John Snow qemu-devel 2 versions Applied

Status from this message: Applied to my block branch:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 13 repliesApplied
  2. v1 RFC3 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3blockjob: add block_job_start_shimblockjob.c+19 -72 replies
2/3block-backend: add drained_begin / drained_end opsblock/block-backend.c include/sysemu/block-backend.h+30 -21 reply
3/3blockjob: add devops to blockjob backendsblockjob.c+24 -51 reply

Reviews trailers per patch

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

PatchJeff CodyBenoît Canet
SeriesR-b
1/3R-b
2/3R-b
3/3R-b

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] block: pause block jobs for bdrv_drain_begin/end

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1367369#c8

It's possible to wedge QEMU if the guest tries to reset a virtio-pci device as QEMU is also using the drive for a blockjob. This patchset aims to allow us to safely pause/resume jobs attached to individual nodes in a manner similar to how bdrv_drain_all_begin/end do.

John Snow (3):
blockjob: add block_job_start_shim
block-backend: add drained_begin / drained_end ops
blockjob: add devops to blockjob backends

 block/block-backend.c          | 24 ++++++++++++++++--
 blockjob.c                     | 55 +++++++++++++++++++++++++++++++++---------
 include/sysemu/block-backend.h |  8 ++++++
 3 files changed, 73 insertions(+), 14 deletions(-)
Signature · 1 line
2.9.3