Skip to contentSkip to conversation

ocfs2/dlm: print lockres under spin lock

PATCH New Wengang Wang 1 participant 2 messages May 31, 2010 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2/dlm: print lockres under spin lock

print lockres under lockres->spinlock.

---
 fs/ocfs2/dlm/dlmconvert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/dlm/dlmconvert.c +1 -1
index 9f30491..a0edf7e 100644
@@ -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;
Signature · 1 line
1.6.6.1
#1 lore raw

PATCH 1/1 ocfs2/dlm: print lockres under spin lock

Oh, Sorry, please ignore this post. I made a mistake.

Quoted 31 lines · Wengang Wang

print lockres under lockres->spinlock.

---
 fs/ocfs2/dlm/dlmconvert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/dlm/dlmconvert.c +1 -1
index 9f30491..a0edf7e 100644
@@ -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;
Signature · 7 lines
1.6.6.1


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-devel