Lines Matching refs:state
244 * Writes go through the following state machine to deal with
335 enum rbd_img_state state;
1680 u8 state;
1683 state = __rbd_object_map_get(rbd_dev, objno);
1685 return state;
1707 u8 state;
1713 state = rbd_object_map_get(rbd_dev, objno);
1714 return state != OBJECT_NONEXISTENT;
1956 u8 state, new_state, current_state;
1986 state = __rbd_object_map_get(rbd_dev, objno);
1987 if (!has_current_state || current_state == state ||
1988 (current_state == OBJECT_EXISTS && state == OBJECT_EXISTS_CLEAN))
2009 u8 state = rbd_object_map_get(rbd_dev, objno);
2011 if (state == new_state ||
2012 (new_state == OBJECT_PENDING && state == OBJECT_NONEXISTENT) ||
2013 (new_state == OBJECT_NONEXISTENT && state != OBJECT_PENDING))
2420 * redundant requests). Prepare object request state machines and image
2421 * request state machine for execution.
2453 img_req->state = RBD_IMG_START;
3528 switch (img_req->state) {
3537 img_req->state = RBD_IMG_EXCLUSIVE_LOCK;
3548 img_req->state = RBD_IMG_OBJECT_REQUESTS;
3551 img_req->state = __RBD_IMG_OBJECT_REQUESTS;
3827 * Either image request state machine(s) or rbd_add_acquire_lock()
3850 rbd_assert(img_req->state == RBD_IMG_EXCLUSIVE_LOCK);
6684 * Undo whatever state changes are made by v1 or v2 header info