Skip to contentSkip to conversation

GFS2: Fix queue trace point

Cluster-devel Steven Whitehouse 1 participant 1 message Jan 27, 2011 GFS2 file system

lore
Share & tools
lore
#0 lore raw

Somehow this tracepoint landed up in the wrong place. This moves it to where it should be.

fs/gfs2/glock.c +1 -1
index c75d499..ddc3e1e 100644
@@ -972,13 +972,13 @@ fail:
 			insert_pt = &gh2->gh_list;
 	}
 	set_bit(GLF_QUEUED, &gl->gl_flags);
+	trace_gfs2_glock_queue(gh, 1);
 	if (likely(insert_pt == NULL)) {
 		list_add_tail(&gh->gh_list, &gl->gl_holders);
 		if (unlikely(gh->gh_flags & LM_FLAG_PRIORITY))
 			goto do_cancel;
 		return;
 	}
-	trace_gfs2_glock_queue(gh, 1);
 	list_add_tail(&gh->gh_list, insert_pt);
 do_cancel:
 	gh = list_entry(gl->gl_holders.next, struct gfs2_holder, gh_list);