RFC Enable In-Drive-Mutex Locking scheme
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest5 patches 0 repliesNew
- v1 RFC0 of 5 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lvmlockd: idm: Introduce new locking schemeconfigure configure.ac daemons/ +2 more | +1143 | 0 replies | |
| 2/5 | lvmlockd: idm: Hook Seagate IDM wrapper APIsdaemons/ daemons/ | +257 | 1 reply | |
| 2/5 | lvmlockd: idm: Hook Seagate IDM wrapper APIs | +0 | 0 replies | |
| 3/5 | lib: locking: Add new type "idm"lib/ lib/ lib/ +1 more | +78 | 0 replies | |
| 4/5 | lib: locking: Parse PV list for IDM lockinglib/ | +241 | 0 replies | |
| 5/5 | tools: Add support for "idm" lock typetools/ tools/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [LVM2 RFCv2 0/5] Enable In-Drive-Mutex Locking scheme
This patch set enables the In-Drive-Mutex (IDM) locking scheme. The previous patch series [1] have given a briefly introduction for IDM and it's associated locking manager and lib.
This series follows up Dave's comments and refines the patches.
And this patch series has been tested with IDM/sanlock/DLM locking schemes for VG and LV creating, removing, activating and deactivating, these operations can work as expected for all of these three locking schemes.
[1] https://listman.redhat.com/archives/lvm-devel/2021-April/msg00111.html
Changes from RFCv1:
* Updated commit log for LVB (Dave);
* Refined the change to only pass PV list for IDM lock type (Dave);
* Refined retriving PV list with function lv_is_on_pv() (Dave);
* Added condition checking for passing PV list in lvmlockd after found a regression on sanlock locking scheme.
Leo Yan (5):
lvmlockd: idm: Introduce new locking scheme
lvmlockd: idm: Hook Seagate IDM wrapper APIs
lib: locking: Add new type "idm"
lib: locking: Parse PV list for IDM locking
tools: Add support for "idm" lock type
configure | 173 ++++++ configure.ac | 20 + daemons/lvmlockd/Makefile.in | 5 + daemons/lvmlockd/lvmlockd-core.c | 281 ++++++++- daemons/lvmlockd/lvmlockd-idm.c | 837 +++++++++++++++++++++++++++ daemons/lvmlockd/lvmlockd-internal.h | 110 ++++ lib/display/display.c | 4 + lib/locking/lvmlockd.c | 330 ++++++++++- lib/metadata/metadata-exported.h | 1 + lib/metadata/metadata.c | 12 +- tools/lvconvert.c | 2 + tools/toollib.c | 11 +- 12 files changed, 1726 insertions(+), 60 deletions(-) create mode 100644 daemons/lvmlockd/lvmlockd-idm.c
Signature · 1 line
2.25.1