Make dlm lock more reliable for cluster-md
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 0 repliesNew
- v23 patches 2 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mdadm: improve the dlm locking mechanism for clustered raidmdadm.c mdadm.h super1.c +1 more | +68 | 0 replies | |
| 2/3 | Assemble: provide protection when clustered raid do assembleAssemble.c | +31 | 0 replies | |
| 3/3 | Assemble: cleanup the failure pathAssemble.c | +22 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | NeilBrown |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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