Skip to content

RFC rbd_tcm cluster COMPARE AND WRITE

David Disseldorp ceph-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5SQUASH rbd/locking: remove rbd_warn() carriage returnsdrivers/block/rbd_main.c+9 -90 replies
2/5SQUASH rbd: fix recursive BLK_DEV_RBD_TCM dependencydrivers/block/Kconfig+1 -20 replies
3/5rbd: export rbd_dev_[un]lock()drivers/block/rbd.h drivers/block/rbd_main.c+7 -40 replies
4/5drivers/rbd_tcm: Add cluster API CAW locking hooksdrivers/block/rbd_tcm.c include/target/target_core_cluster.h+212 -00 replies
5/5target/core_sbc: use cluster API hooks for COMPARE AND WRITEdrivers/target/target_core_sbc.c+24 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/5] rbd_tcm cluster COMPARE AND WRITE

Hi Mike,

This RFC patch-set expands on your recently proposed cluster API changes to add rbd_tcm COMPARE AND WRITE support.

Rather than offloading the entire COMPARE AND WRITE operation to the cluster back-end, these changes extend on the existing local semaphore usage, to additionally take an RBD COMPARE AND WRITE device lock. RBD device lock acquisition is handled via a newly added rbd_tcm workqueue.

I'd appreciate feedback on the overall direction of these changes.

Cheers, David

--

 drivers/block/Kconfig                |   3 +-
 drivers/block/rbd.h                  |   3 +
 drivers/block/rbd_main.c             |  26 ++--
 drivers/block/rbd_tcm.c              | 208 +++++++++++++++++++++++++++
 drivers/target/target_core_sbc.c     |  28 +++-
 include/target/target_core_cluster.h |   4 +
 6 files changed, 253 insertions(+), 19 deletions(-)