Skip to contentSkip to conversation

dlm: remove shared message stub for recovery

PATCH New David Teigland 1 participant 1 message May 23, 2011 Distributed lock manager (DLM)

lore
Share & tools
lore

David Teigland

author maintainer
#0 lore raw

PATCH 3/4 dlm: remove shared message stub for recovery

kmalloc a stub message struct during recovery instead of sharing the struct in the lockspace. This leaves the lockspace stub_ms only for faking downconvert replies, where it is never modified and sharing is not a problem.

Also improve the debug messages in the same recovery function.

---
 fs/dlm/dlm_internal.h |    1 +
 fs/dlm/lock.c         |   82 +++++++++++++++++++++++++++++-------------------
 2 files changed, 50 insertions(+), 33 deletions(-)
fs/dlm/dlm_internal.h +1 -0
index 6a92478..0262451 100644
@@ -209,6 +209,7 @@ struct dlm_args {
 #define DLM_IFL_WATCH_TIMEWARN	0x00400000
 #define DLM_IFL_TIMEOUT_CANCEL	0x00800000
 #define DLM_IFL_DEADLOCK_CANCEL	0x01000000
+#define DLM_IFL_STUB_MS		0x02000000 /* magic number for m_flags */
 #define DLM_IFL_USER		0x00000001
 #define DLM_IFL_ORPHAN		0x00000002
 
fs/dlm/lock.c +49 -33

170 lines not on this page · raw message

Signature · 1 line
1.7.1.1