Skip to content

block: Remove BlockDriverState.blk

Kevin Wolf qemu-devel 2 versions – Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 12 repliesApplied
  2. v19 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Patch 1 ('block: Use BdrvChild callbacks for change_media/resize') Bring back an accidentally removed comment [Max]

- Patch 2 ('block: User BdrvChild callback for device name') Documented BdrvChildRole.get_name() callback [Max]

- Patch 3 ('blockjob: Don't set iostatus of target') and Patch 4 ('Don't touch BDS iostatus')

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9block: Use BdrvChild callbacks for change_media/resizeblock.c block/block-backend.c include/block/block_int.h+43 -150 replies
2/9block: User BdrvChild callback for device nameblock.c block/block-backend.c include/block/block_int.h+31 -20 replies
3/9blockjob: Don't set iostatus of targetblock/backup.c block/mirror.c block/stream.c +2 more+11 -187 replies
4/9blockjob: Don't touch BDS iostatusblock/backup.c block/commit.c block/mirror.c +1 more+0 -661 reply
5/9block: Remove bdrv_aio_multiwrite()block/block-backend.c block/io.c include/block/block.h +8 more+9 -6722 replies
6/9block: Add bdrv_has_blk()block/block-backend.c include/sysemu/block-backend.h+18 -00 replies
7/9block: Avoid bs->blk in bdrv_next()block.c block/block-backend.c block/io.c +7 more+99 -721 reply
8/9block: Don't return throttling info in query-named-block-nodesblock/qapi.c tests/qemu-iotests/096+5 -40 replies
9/9block: Remove BlockDriverState.blkblock.c block/block-backend.c block/mirror.c +2 more+12 -290 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchMax ReitzEric Blake
1/9R-b
2/9R-b
3/9R-b R-b
4/9R-b
5/9R-b R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-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/9] block: Remove BlockDriverState.blk

This is the final patch series that is required before we can start allowing setups with more than one BlockBackend per BlockDriverState.

Depends on 'block: Move I/O throttling to BlockBackend'.

v2:
- Patch 1 ('block: Use BdrvChild callbacks for change_media/resize') Bring back an accidentally removed comment [Max]

- Patch 2 ('block: User BdrvChild callback for device name') Documented BdrvChildRole.get_name() callback [Max]

- Patch 3 ('blockjob: Don't set iostatus of target') and Patch 4 ('Don't touch BDS iostatus')

Replaces 'Use BdrvChild callbacks for iostatus operations'. The whole problematic iostatus manipulation of block jobs only affected the target node where it wasn't visible, and it doesn't make sense, so it can simply go away.

- Patch 6 ('block: Add bdrv_has_blk()') and
Patch 7 ('block: Avoid bs->blk in bdrv_next()')

Split differently to keep the bdrv_next() changes in one patch [Max] Return BDSes only once in bdrv_next() even with multiple BBs [Max] Use enum for iteration phases instead of magic int [Max]

- Patch 9 ('block: Remove BlockDriverState.blk')
Use bdrv_get_parent_name() to keep error message unchanged [Max]

Kevin Wolf (9):
block: Use BdrvChild callbacks for change_media/resize
block: User BdrvChild callback for device name
blockjob: Don't set iostatus of target
blockjob: Don't touch BDS iostatus
block: Remove bdrv_aio_multiwrite()
block: Add bdrv_has_blk()
block: Avoid bs->blk in bdrv_next()
block: Don't return throttling info in query-named-block-nodes
block: Remove BlockDriverState.blk

 block.c                        | 101 ++++++++++----------
 block/backup.c                 |  34 +------
 block/block-backend.c          | 116 +++++++++++++++--------
 block/commit.c                 |   7 --
 block/io.c                     | 207 ++---------------------------------------
 block/mirror.c                 |  38 ++------
 block/qapi.c                   |   6 +-
 block/snapshot.c               |  30 +++---
 block/stream.c                 |  10 +-
 blockdev.c                     |  19 ++--
 blockjob.c                     |   6 +-
 include/block/block.h          |  10 +-
 include/block/block_int.h      |  12 ++-
 include/block/blockjob.h       |   4 +-
 include/sysemu/block-backend.h |   3 +-
 migration/block.c              |   4 +-
 monitor.c                      |   6 +-
 qemu-io-cmds.c                 | 203 ----------------------------------------
 qmp.c                          |   5 +-
 tests/qemu-iotests/096         |   3 +-
 tests/qemu-iotests/100         | 145 -----------------------------
 tests/qemu-iotests/100.out     |  89 ------------------
 tests/qemu-iotests/136         |  20 +---
 tests/qemu-iotests/136.out     |   4 +-
 tests/qemu-iotests/group       |   2 +-
 trace-events                   |   2 -
 26 files changed, 218 insertions(+), 868 deletions(-)
 delete mode 100755 tests/qemu-iotests/100
 delete mode 100644 tests/qemu-iotests/100.out
Signature · 1 line
1.8.3.1