Skip to content

RFC Enable In-Drive-Mutex Locking scheme

Leo Yan lvm-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 0 repliesNew
  2. v1 RFC0 of 5 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lvmlockd: idm: Introduce new locking schemeconfigure configure.ac daemons/lvmlockd/Makefile.in +2 more+1143 -00 replies
2/5lvmlockd: idm: Hook Seagate IDM wrapper APIsdaemons/lvmlockd/lvmlockd-core.c daemons/lvmlockd/lvmlockd-internal.h+257 -281 reply
2/5lvmlockd: idm: Hook Seagate IDM wrapper APIs+0 -00 replies
3/5lib: locking: Add new type "idm"lib/display/display.c lib/locking/lvmlockd.c lib/metadata/metadata-exported.h +1 more+78 -110 replies
4/5lib: locking: Parse PV list for IDM lockinglib/locking/lvmlockd.c+241 -170 replies
5/5tools: Add support for "idm" lock typetools/lvconvert.c tools/toollib.c+8 -50 replies

Reviews trailers per patch

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

Read the v2 thread

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