scoutfs: move unblock_lock trace under lock

It samples fields that are only consistent under the lock.  We also want
to see the fields every time it rechecks the conditions that stop it
from downconverting.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2018-01-12 11:03:35 -08:00
committed by Mark Fasheh
parent afc798599f
commit fb6c128503

View File

@@ -2398,11 +2398,12 @@ static int ocfs2_unblock_lock(struct ocfs2_super *osb,
int set_lvb = 0;
unsigned int gen;
trace_ocfs2_unblock_lock(osb, lockres);
spin_lock_irqsave(&lockres->l_lock, flags);
recheck:
trace_ocfs2_unblock_lock(osb, lockres);
/*
* Is it still blocking? If not, we have no more work to do.
*/