ocfs2-devel.oss.oracle.com archive mirror
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/dlm: print lockres under spin lock
@ 2010-05-31 18:43 Wengang Wang
  2010-05-31 12:44 ` Wengang Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Wengang Wang @ 2010-05-31 18:43 UTC (permalink / raw)
  To: ocfs2-devel

print lockres under lockres->spinlock.

Signed-off-by: Wengang Wang <wen.gang.wang@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-31 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-31 18:43 [Ocfs2-devel] [PATCH] ocfs2/dlm: print lockres under spin lock Wengang Wang
2010-05-31 12:44 ` Wengang Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).