dlm: remove shared message stub for recovery
David Teigland
maintainerPATCH 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.
Signed-off-by David Teigland <[email protected]>
--- 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
@@ -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