Lines Matching refs:current_gh
325 struct gfs2_holder *current_gh, in may_grant() argument
328 if (current_gh) { in may_grant()
329 GLOCK_BUG_ON(gl, !test_bit(HIF_HOLDER, ¤t_gh->gh_iflags)); in may_grant()
331 switch(current_gh->gh_state) { in may_grant()
341 (current_gh->gh_flags & LM_FLAG_NODE_SCOPE) && in may_grant()
346 return gh->gh_state == current_gh->gh_state; in may_grant()
476 struct gfs2_holder *gh, *current_gh; in do_promote() local
478 current_gh = find_first_holder(gl); in do_promote()
482 if (!may_grant(gl, current_gh, gh)) { in do_promote()
497 if (!current_gh) in do_promote()
498 current_gh = gh; in do_promote()
1490 struct gfs2_holder *current_gh; in add_to_queue() local
1492 current_gh = find_first_holder(gl); in add_to_queue()
1493 try_futile = !may_grant(gl, current_gh, gh); in add_to_queue()