Lines Matching refs:state
65 static void handle_callback(struct gfs2_glock *gl, unsigned int state,
520 * state_change - record that the glock is now in a different state
522 * @new_state: the new state
575 unsigned state = ret & LM_OUT_ST_MASK;
578 trace_gfs2_glock_state_change(gl, state);
579 state_change(gl, state);
584 state != LM_ST_UNLOCKED && gl->gl_demote_state == LM_ST_UNLOCKED)
587 /* Check for state != intended state */
588 if (unlikely(state != gl->gl_target)) {
609 switch(state) {
622 gl->gl_target, state);
632 if (state != LM_ST_UNLOCKED) {
662 * do_xmote - Calls the DLM to change the state of a lock
663 * @gl: The lock state
665 * @target: The target lock state
690 * finish first. The glock state machine will get back to this
744 * dlm to unlock the glock until the journal is in a known good state
769 * finish_xmote, which would call state_change() to the new state.
771 * manually, but to the UNLOCKED state we desire.
1243 * @state: the state we're requesting
1249 void __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags,
1256 gh->gh_state = state;
1263 * @state: the state we're requesting
1271 void gfs2_holder_reinit(unsigned int state, u16 flags, struct gfs2_holder *gh)
1273 gh->gh_state = state;
1409 * @state: the state the caller wants us to change to
1417 static void handle_callback(struct gfs2_glock *gl, unsigned int state,
1425 gl->gl_demote_state = state;
1428 gl->gl_demote_state != state) {
1537 fs_err(sdp, "lock type: %d req lock state : %d\n",
1541 fs_err(sdp, "lock type: %d req lock state : %d\n",
1718 * @state: the state to acquire the glock in
1727 unsigned int state, u16 flags, struct gfs2_holder *gh)
1734 error = gfs2_glock_nq_init(gl, state, flags, gh);
1846 void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state)
1862 handle_callback(gl, state, delay, true);
1903 * to use a bitfield shared with other glock state fields.
2199 static const char *state2str(unsigned state)
2201 switch(state) {
2336 * t = type, s = state, r = refcount, e = error, p = pid.