Lines Matching refs:gl_lockref
160 GLOCK_BUG_ON(gl, __lockref_is_dead(&gl->gl_lockref)); in gfs2_glock_hold()
161 lockref_get(&gl->gl_lockref); in gfs2_glock_hold()
229 GLOCK_BUG_ON(gl, gl->gl_lockref.count < 2); in __gfs2_glock_queue_work()
230 gl->gl_lockref.count--; in __gfs2_glock_queue_work()
235 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_queue_work()
237 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_queue_work()
245 lockref_mark_dead(&gl->gl_lockref); in __gfs2_glock_put()
248 spin_unlock(&gl->gl_lockref.lock); in __gfs2_glock_put()
271 if (lockref_put_or_lock(&gl->gl_lockref)) in gfs2_glock_put()
346 __releases(&gl->gl_lockref.lock) in do_promote()
347 __acquires(&gl->gl_lockref.lock) in do_promote()
360 spin_unlock(&gl->gl_lockref.lock); in do_promote()
363 spin_lock(&gl->gl_lockref.lock); in do_promote()
422 GLOCK_BUG_ON(gl, __lockref_is_dead(&gl->gl_lockref)); in state_change()
424 gl->gl_lockref.count++; in state_change()
426 gl->gl_lockref.count--; in state_change()
461 spin_lock(&gl->gl_lockref.lock); in finish_xmote()
505 spin_unlock(&gl->gl_lockref.lock); in finish_xmote()
514 spin_unlock(&gl->gl_lockref.lock); in finish_xmote()
516 spin_lock(&gl->gl_lockref.lock); in finish_xmote()
529 spin_unlock(&gl->gl_lockref.lock); in finish_xmote()
541 __releases(&gl->gl_lockref.lock) in do_xmote()
542 __acquires(&gl->gl_lockref.lock) in do_xmote()
567 spin_unlock(&gl->gl_lockref.lock); in do_xmote()
594 spin_lock(&gl->gl_lockref.lock); in do_xmote()
622 __releases(&gl->gl_lockref.lock) in run_queue()
623 __acquires(&gl->gl_lockref.lock) in run_queue()
662 gl->gl_lockref.count++; in run_queue()
704 spin_lock(&gl->gl_lockref.lock); in glock_work_func()
733 gl->gl_lockref.count -= drop_refs; in glock_work_func()
734 if (!gl->gl_lockref.count) { in glock_work_func()
738 spin_unlock(&gl->gl_lockref.lock); in glock_work_func()
764 if (gl && !lockref_get_not_dead(&gl->gl_lockref)) { in find_insert_glock()
831 gl->gl_lockref.count = 1; in gfs2_glock_get()
1015 __releases(&gl->gl_lockref.lock) in add_to_queue()
1016 __acquires(&gl->gl_lockref.lock) in add_to_queue()
1065 spin_unlock(&gl->gl_lockref.lock); in add_to_queue()
1068 spin_lock(&gl->gl_lockref.lock); in add_to_queue()
1106 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_nq()
1111 gl->gl_lockref.count++; in gfs2_glock_nq()
1115 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_nq()
1148 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_dq()
1157 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_dq()
1159 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_dq()
1172 gl->gl_lockref.count++; in gfs2_glock_dq()
1179 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_dq()
1354 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_cb()
1357 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_cb()
1403 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_complete()
1409 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_complete()
1414 gl->gl_lockref.count++; in gfs2_glock_complete()
1417 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_complete()
1461 if (!spin_trylock(&gl->gl_lockref.lock)) { in gfs2_dispose_glock_lru()
1469 spin_unlock(&gl->gl_lockref.lock); in gfs2_dispose_glock_lru()
1472 gl->gl_lockref.count++; in gfs2_dispose_glock_lru()
1477 spin_unlock(&gl->gl_lockref.lock); in gfs2_dispose_glock_lru()
1563 lockref_get_not_dead(&gl->gl_lockref)) in glock_hash_walk()
1598 spin_lock(&gl->gl_lockref.lock); in clear_glock()
1602 spin_unlock(&gl->gl_lockref.lock); in clear_glock()
1618 spin_lock(&gl->gl_lockref.lock); in dump_glock()
1620 spin_unlock(&gl->gl_lockref.lock); in dump_glock()
1656 spin_lock(&gl->gl_lockref.lock); in gfs2_glock_finish_truncate()
1659 spin_unlock(&gl->gl_lockref.lock); in gfs2_glock_finish_truncate()
1805 (int)gl->gl_lockref.count, gl->gl_hold_time); in gfs2_dump_glock()
1938 if (!lockref_put_not_zero(&gl->gl_lockref)) in gfs2_glock_iter_next()
1954 if (!lockref_get_not_dead(&gl->gl_lockref)) in gfs2_glock_iter_next()
1958 if (__lockref_is_dead(&gl->gl_lockref)) in gfs2_glock_iter_next()