Lines Matching refs:ghs
967 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument
972 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending()
987 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument
989 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait()
1000 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait()
1004 !glocks_pending(num_gh, ghs), timeout)) in gfs2_glock_async_wait()
1024 if (!gfs2_holder_queued(&ghs[i])) in gfs2_glock_async_wait()
1027 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait()
1032 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait()
1034 gfs2_glock_dq(&ghs[i]); in gfs2_glock_async_wait()
1036 gfs2_glock_update_hold_time(ghs[i].gh_gl, in gfs2_glock_async_wait()
1040 ret = ghs[i].gh_error; in gfs2_glock_async_wait()
1355 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument
1362 p[x] = &ghs[x]; in nq_m_sync()
1390 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m() argument
1400 ghs->gh_flags &= ~(LM_FLAG_TRY | GL_ASYNC); in gfs2_glock_nq_m()
1401 return gfs2_glock_nq(ghs); in gfs2_glock_nq_m()
1411 error = nq_m_sync(num_gh, ghs, pph); in gfs2_glock_nq_m()
1426 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m() argument
1429 gfs2_glock_dq(&ghs[num_gh]); in gfs2_glock_dq_m()