Skip to content

blockjobs: preliminary refactoring work, Pt 1

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 Latest7 patches 1 replyApplied
  2. v17 patches 17 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7blockjobs: hide internal jobs from management APIblockdev.c blockjob.c include/block/blockjob.h+57 -130 replies
2/7blockjobs: Allow creating internal jobsblock/backup.c block/commit.c block/mirror.c +5 more+30 -160 replies
3/7Replication/Blockjobs: Create replication jobs as internalblock/backup.c block/mirror.c block/replication.c +3 more+36 -270 replies
4/7blockjob: centralize QMP event emissionsblock/commit.c block/mirror.c block/stream.c +5 more+42 -830 replies
5/7Blockjobs: Internalize user_pause logicblockdev.c blockjob.c include/block/blockjob.h+51 -90 replies
6/7blockjobs: split interface into public/private, Part 1block/backup.c block/commit.c block/mirror.c +7 more+244 -2100 replies
7/7blockjobs: fix documentationinclude/block/blockjob_int.h+2 -20 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchKevin WolfJeff Cody
1/7
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-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/7] blockjobs: preliminary refactoring work, Pt 1

This is a follow-up to patches 2-6 of:
[PATCH v2 00/11] blockjobs: Fix transactional race condition

That series started trying to refactor blockjobs with the goal of internalizing BlockJob state as a side effect of having gone through the effort of figuring out which commands were "safe" to call on a Job that has no coroutine object.

I've split out the less contentious bits so I can move forward with my original work of focusing on the transactional race condition in a different series.

Functionally the biggest difference here is the presence of "internal" block jobs, which do not emit QMP events or show up in block query requests. This is done for the sake of replication jobs, which should not be interfering with the public jobs namespace.

===
v2
===

01: Cleaned up error message, fixed strcmp oversight, added assert()
02-07: Added R-Bs. (Does everyone else pronounce this as "Arby's" too?)

________________________________________________________________________________

For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch job-refactor-pt1
https://github.com/jnsnow/qemu/tree/job-refactor-pt1

This version is tagged job-refactor-pt1-v2:
https://github.com/jnsnow/qemu/releases/tag/job-refactor-pt1-v2

John Snow (7):
blockjobs: hide internal jobs from management API
blockjobs: Allow creating internal jobs Replication/Blockjobs: Create replication jobs as internal
blockjob: centralize QMP event emissions
Blockjobs: Internalize user_pause logic
blockjobs: split interface into public/private, Part 1
blockjobs: fix documentation

 block/backup.c               |   5 +-
 block/commit.c               |  10 +-
 block/mirror.c               |  28 +++--
 block/replication.c          |  14 +--
 block/stream.c               |   9 +-
 block/trace-events           |   5 +-
 blockdev.c                   |  74 +++++--------
 blockjob.c                   | 113 +++++++++++++++----
 include/block/block.h        |   3 +-
 include/block/block_int.h    |  26 ++---
 include/block/blockjob.h     | 257 +++++++------------------------------------
 include/block/blockjob_int.h | 232 ++++++++++++++++++++++++++++++++++++++
 qemu-img.c                   |   5 +-
 tests/test-blockjob-txn.c    |   5 +-
 tests/test-blockjob.c        |   4 +-
 15 files changed, 446 insertions(+), 344 deletions(-)
 create mode 100644 include/block/blockjob_int.h
Signature · 1 line
2.7.4