[Ocfs2-devel] [PATCH] ocfs2/dlm: print lockres under spin lock

Wengang Wang wen.gang.wang at oracle.com
Mon May 31 11:43:10 PDT 2010


print lockres under lockres->spinlock.

Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com>
---
 fs/ocfs2/dlm/dlmconvert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c
index 9f30491..a0edf7e 100644
--- a/fs/ocfs2/dlm/dlmconvert.c
+++ b/fs/ocfs2/dlm/dlmconvert.c
@@ -235,10 +235,10 @@ switch_queues:
 	list_move_tail(&lock->list, &res->converting);
 
 unlock_exit:
-	spin_unlock(&lock->spinlock);
 	if (status == DLM_DENIED) {
 		__dlm_print_one_lock_resource(res);
 	}
+	spin_unlock(&lock->spinlock);
 	if (status == DLM_NORMAL)
 		*kick_thread = 1;
 	return status;
-- 
1.6.6.1




More information about the Ocfs2-devel mailing list