Skip to content

Make dlm lock more reliable for cluster-md

Guoqing Jiang linux-raid 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v3 from the cover letter

1. remove lock_cluster()/unclock_cluster().

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mdadm: improve the dlm locking mechanism for clustered raidmdadm.c mdadm.h super1.c +1 more+68 -610 replies
2/3Assemble: provide protection when clustered raid do assembleAssemble.c+31 -10 replies
3/3Assemble: cleanup the failure pathAssemble.c+22 -400 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchNeilBrown
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/3] Make dlm lock more reliable for cluster-md

V3 changes:
1. remove lock_cluster()/unclock_cluster().

---------------------------------------------------------------------
V2 changes:

1. confirm a device in slave node doen't need to get lock.
2. remove the explicitly name of dlm library.
3. delete a global variable which was used for store lockid.

---------------------------------------------------------------------
Currently, only a few functions which change superblock are protected by dlm lock, but to avoid consistent issue we need to protect those funcs which read superblock.

And call dlm locking interface inside super1.c is really clumsy since each func which accesses superblock should be protected by dlm lock, so we call lock_cluster/unlock_cluster in mdadm.c.

The first patch provides dlm locking support for CREATE, MANAGE, GROW and INCREMENTAL mode, then the second patch provides the support for ASSEMBLE mode. The last patch cleanup the failure path in Assemble().

Guoqing Jiang (3):
mdadm: improve the dlm locking mechanism for clustered raid
Assemble: provide protection when clustered raid do assemble
Assemble: cleanup the failure path

 Assemble.c | 78 ++++++++++++++++++++++++++++++++++++--------------------------
 mdadm.c    | 20 ++++++++++++++++
 mdadm.h    | 10 ++++----
 super1.c   | 42 ---------------------------------
 util.c     | 57 ++++++++++++++++++++++++++++++++++-----------
 5 files changed, 113 insertions(+), 94 deletions(-)
Signature · 1 line
2.13.6