Hi Joseph and all,
In order to learn about DLM, I got [1][2][3] besides source code in
fs/dlm and fs/ocfs2/dlm.
Among them, [1][2] are for fs/dlm, and [3] is for fs/ocfs2/dlm. But most
parts of [3] is not complete yet.
[1] http://opendlm.sourceforge.net/cvsmirror/opendlm/docs/dlmbook_final.pdf
dlm_lockres_put will call dlm_lockres_release if it is the last
reference, and then it may call dlm_print_one_lock_resource and take
lockres spinlock.
So unlock lockres spinlock before dlm_lockres_put to avoid deadlock.
Signed-off-by: Joseph Qi
---
fs/ocfs2/dlm/dlmmaster.c | 3 ++-
fs/ocfs2/dl