Lines Matching refs:ghs
1192 static int glocks_pending(unsigned int num_gh, struct gfs2_holder *ghs) in glocks_pending() argument
1197 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) in glocks_pending()
1212 int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_async_wait() argument
1214 struct gfs2_sbd *sdp = ghs[0].gh_gl->gl_name.ln_sbd; in gfs2_glock_async_wait()
1225 timeout += ghs[i].gh_gl->gl_hold_time << 1; in gfs2_glock_async_wait()
1229 !glocks_pending(num_gh, ghs), timeout)) in gfs2_glock_async_wait()
1249 if (!gfs2_holder_queued(&ghs[i])) in gfs2_glock_async_wait()
1252 if (test_bit(HIF_WAIT, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait()
1257 if (test_bit(HIF_HOLDER, &ghs[i].gh_iflags)) { in gfs2_glock_async_wait()
1259 gfs2_glock_dq(&ghs[i]); in gfs2_glock_async_wait()
1261 gfs2_glock_update_hold_time(ghs[i].gh_gl, in gfs2_glock_async_wait()
1265 ret = ghs[i].gh_error; in gfs2_glock_async_wait()
1589 static int nq_m_sync(unsigned int num_gh, struct gfs2_holder *ghs, in nq_m_sync() argument
1596 p[x] = &ghs[x]; in nq_m_sync()
1624 int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_nq_m() argument
1634 ghs->gh_flags &= ~(LM_FLAG_TRY | GL_ASYNC); in gfs2_glock_nq_m()
1635 return gfs2_glock_nq(ghs); in gfs2_glock_nq_m()
1645 error = nq_m_sync(num_gh, ghs, pph); in gfs2_glock_nq_m()
1660 void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs) in gfs2_glock_dq_m() argument
1663 gfs2_glock_dq(&ghs[num_gh]); in gfs2_glock_dq_m()