Lines Matching refs:state
59 if (READ_ONCE(clt_path->state) == RTRS_CLT_CONNECTED) {
192 * rtrs_clt_change_state() - change the session state through session state
195 * @clt_path: client path to change the state of.
196 * @new_state: state to change to.
198 * returns true if sess's state is changed to new state, otherwise return false.
211 old_state = clt_path->state;
285 clt_path->state = new_state;
299 if (clt_path->state == old_state)
320 * so notify waiter with error state, waiter is responsible
825 if (READ_ONCE(clt_path->state) != RTRS_CLT_CONNECTED)
876 if (READ_ONCE(clt_path->state) != RTRS_CLT_CONNECTED)
1294 if (READ_ONCE(alive_path->state) != RTRS_CLT_CONNECTED)
1482 *old_state = clt_path->state;
1571 clt_path->state = RTRS_CLT_CONNECTING;
1676 * in case qp gets into error state.
1991 * i.e. wake up without state change, but we set cm_err.
2079 * or session state was really changed to error by device removal.
2083 con->cm_err || clt_path->state != RTRS_CLT_CONNECTING,
2093 if (READ_ONCE(clt_path->state) != RTRS_CLT_CONNECTING)
2151 WARN_ON(READ_ONCE(clt_path->state) == RTRS_CLT_CONNECTED);
2161 * All IO paths must observe !CONNECTED state before we
2370 * doing rdma_resolve_addr(), switch to CONNECTION_ERR state
2467 enum rtrs_clt_state state;
2472 state = RTRS_CLT_CONNECTING_ERR;
2511 state = RTRS_CLT_CONNECTED;
2516 rtrs_clt_change_state_get_old(clt_path, state, NULL);
2563 /* Wait for state change */
2565 clt_path->state != RTRS_CLT_CONNECTING,
2568 if (READ_ONCE(clt_path->state) != RTRS_CLT_CONNECTED) {
2569 if (READ_ONCE(clt_path->state) == RTRS_CLT_CONNECTING_ERR)
2640 if (READ_ONCE(clt_path->state) != RTRS_CLT_RECONNECTING)
2907 err = (READ_ONCE(clt_path->state) ==
2921 * Continue stopping path till state was changed to DEAD or
2922 * state was observed as DEAD:
3008 if (READ_ONCE(clt_path->state) != RTRS_CLT_CONNECTED)
3051 if (READ_ONCE(clt_path->state) != RTRS_CLT_CONNECTED)
3112 * It is totally safe to add path in CONNECTING state: coming