Lines Matching refs:ghs
968 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument
973 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending()
988 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument
990 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait()
1001 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait()
1005 !glocks_pending(num_gh, ghs), timeout)) in gfs2_glock_async_wait()
1025 if (!gfs2_holder_queued(&ghs[i])) in gfs2_glock_async_wait()
1028 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait()
1033 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait()
1035 gfs2_glock_dq(&ghs[i]); in gfs2_glock_async_wait()
1037 gfs2_glock_update_hold_time(ghs[i].gh_gl, in gfs2_glock_async_wait()
1041 ret = ghs[i].gh_error; in gfs2_glock_async_wait()
1356 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument
1363 p[x] = &ghs[x]; in nq_m_sync()
1391 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m() argument
1401 ghs->gh_flags &= ~(LM_FLAG_TRY | GL_ASYNC); in gfs2_glock_nq_m()
1402 return gfs2_glock_nq(ghs); in gfs2_glock_nq_m()
1412 error = nq_m_sync(num_gh, ghs, pph); in gfs2_glock_nq_m()
1427 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m() argument
1430 gfs2_glock_dq(&ghs[num_gh]); in gfs2_glock_dq_m()