RFC rbd_tcm cluster COMPARE AND WRITE
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | SQUASH rbd/locking: remove rbd_warn() carriage returnsdrivers/ | +9 | 0 replies | |
| 2/5 | SQUASH rbd: fix recursive BLK_DEV_RBD_TCM dependencydrivers/ | +1 | 0 replies | |
| 3/5 | rbd: export rbd_dev_[un]lock()drivers/ drivers/ | +7 | 0 replies | |
| 4/5 | drivers/rbd_tcm: Add cluster API CAW locking hooksdrivers/ include/ | +212 | 0 replies | |
| 5/5 | target/core_sbc: use cluster API hooks for COMPARE AND WRITEdrivers/ | +24 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)