Skip to content

RBD reopen, read_only cleanup

Jeff Cody 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 Latest8 patches 3 repliesApplied
  2. v19 patches 19 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8block: add bdrv_set_read_only() helper functionblock.c block/bochs.c block/cloop.c +4 more+12 -60 replies
2/8block: do not set BDS read_only if copy_on_read enabledblock.c block/bochs.c block/cloop.c +4 more+48 -100 replies
3/8block: honor BDRV_O_ALLOW_RDWR when clearing bs->read_onlyblock.c+7 -00 replies
4/8block: code movementblock.c+5 -50 replies
5/8block: introduce bdrv_can_set_read_only()block.c include/block/block.h+14 -10 replies
6/8block: use bdrv_can_set_read_only() during reopenblock.c+8 -60 replies
7/8block/rbd - update variable names to more apt namesblock/rbd.c+17 -160 replies
8/8block/rbd: Add support for reopen()block/rbd.c+21 -00 replies

Reviews trailers per patch

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

PatchStefan HajnocziJohn Snow
SeriesR-b R-b
1/8R-b
2/8
3/8
4/8R-b R-b
5/8
6/8
7/8R-b
8/8R-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 for-2.10 0/8] RBD reopen, read_only cleanup

Changes from v1:

Patch 2: Has v1 patch 8 (do not blindly xset bs->read_only) squashed into it
(thanks Stefan)
COW -> "copy-on-read" (Thanks John)
Drop unneeded call in vvfat, and bypass enable_write_target (Stefan)

Patch 5: Rename bdrv_try_... to bdrv_can_set_read_only() (Thanks John, Stefan)

Patch 6: Use "reopen_state->flags" not "reopen_state->bs->open_flags"
(Thanks John)

This series does two things:

1.) Cleans up some of the logic behind setting the read_only flag
for a BDS in the block layer, so that it is done consistently (and rules are applied consistently), and

2.) Adds .bdrv_reopen_prepare() implementation for RBD, so that block
jobs can be run on backing chains that have rbd protocol nodes.

Jeff Cody (8):
block: add bdrv_set_read_only() helper function
block: do not set BDS read_only if copy_on_read enabled
block: honor BDRV_O_ALLOW_RDWR when clearing bs->read_only
block: code movement
block: introduce bdrv_can_set_read_only()
block: use bdrv_can_set_read_only() during reopen block/rbd - update variable names to more apt names block/rbd: Add support for reopen()

 block.c               | 56 +++++++++++++++++++++++++++++++++++---------
 block/bochs.c         |  5 +++-
 block/cloop.c         |  5 +++-
 block/dmg.c           |  6 ++++-
 block/rbd.c           | 65 +++++++++++++++++++++++++++++++++++++--------------
 block/vvfat.c         | 19 +++++++++++----
 include/block/block.h |  2 ++
 7 files changed, 123 insertions(+), 35 deletions(-)
Signature · 1 line
2.9.3