Skip to content

block: Fix op blockers for inactive images

Kevin Wolf qemu-devel 1 version Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6migration: Unify block node activation error handlingmigration/migration.c migration/savevm.c qmp.c+19 -271 reply
2/6block: New BdrvChildRole.activate() for blk_resume_after_migration()block.c block/block-backend.c include/block/block.h +4 more+44 -431 reply
3/6block: Drop permissions when migration completesblock.c block/block-backend.c include/block/block_int.h+40 -41 reply
4/6block: Inactivate parents before childrenblock.c+18 -71 reply
5/6block: Fix write/resize permissions for inactive imagesblock.c include/block/block.h+34 -23 replies
6/6file-posix: Remove .bdrv_inactivate/invalidate_cacheblock/file-posix.c+0 -331 reply

Reviews trailers per patch

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

PatchEric Blake
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] block: Fix op blockers for inactive images

Fam's image locking series introduced some special-casing in the file-posix driver that avoids taking locks when the image is inactive. While this works, it really isn't the job of the file-posix driver, but the core block layer should consider that inactive nodes require a lot less permissions.

This series integrates op blockers with bdrv_inactivate/invalidate_cache() to solve this problem gennerically, and removes the workaround in file-posix.

Kevin Wolf (6):
migration: Unify block node activation error handling
block: New BdrvChildRole.activate() for blk_resume_after_migration()
block: Drop permissions when migration completes
block: Inactivate parents before children
block: Fix write/resize permissions for inactive images
file-posix: Remove .bdrv_inactivate/invalidate_cache

 block.c                   | 76 ++++++++++++++++++++++++++++++++++++++++----
 block/block-backend.c     | 81 +++++++++++++++++++++++++++++++----------------
 block/file-posix.c        | 33 -------------------
 include/block/block.h     |  3 +-
 include/block/block_int.h |  6 ++++
 migration/migration.c     | 13 ++------
 migration/savevm.c        |  9 ++----
 qmp.c                     | 18 ++++-------
 8 files changed, 139 insertions(+), 100 deletions(-)
Signature · 1 line
1.8.3.1