Lines Matching refs:state

54 		connected |= READ_ONCE(sess->state) == RTRS_CLT_CONNECTED;
189 * __rtrs_clt_change_state() - change the session state through session state
192 * @sess: client session to change the state of.
193 * @new_state: state to change to.
195 * returns true if successful, false if the requested state can not be set.
208 old_state = sess->state;
282 sess->state = new_state;
296 if (sess->state == old_state)
323 * so notify waiter with error state, waiter is responsible
814 if (unlikely(READ_ONCE(sess->state) != RTRS_CLT_CONNECTED))
1182 if (unlikely(READ_ONCE(alive_sess->state) !=
1372 *old_state = sess->state;
1458 sess->state = RTRS_CLT_CONNECTING;
1546 * in case qp gets into error state
1864 * i.e. wake up without state change, but we set cm_err.
1946 * or session state was really changed to error by device removal.
1950 con->cm_err || sess->state != RTRS_CLT_CONNECTING,
1962 if (READ_ONCE(sess->state) != RTRS_CLT_CONNECTING) {
2031 WARN_ON(READ_ONCE(sess->state) == RTRS_CLT_CONNECTED);
2041 * All IO paths must observe !CONNECTED state before we
2253 * doing rdma_resolve_addr(), switch to CONNECTION_ERR state
2349 enum rtrs_clt_state state;
2354 state = RTRS_CLT_CONNECTING_ERR;
2393 state = RTRS_CLT_CONNECTED;
2398 rtrs_clt_change_state(sess, state);
2444 /* Wait for state change */
2446 sess->state != RTRS_CLT_CONNECTING,
2449 if (unlikely(READ_ONCE(sess->state) != RTRS_CLT_CONNECTED)) {
2450 if (READ_ONCE(sess->state) == RTRS_CLT_CONNECTING_ERR)
2508 if (READ_ONCE(sess->state) != RTRS_CLT_RECONNECTING)
2780 err = (READ_ONCE(sess->state) ==
2801 * Continue stopping path till state was changed to DEAD or
2802 * state was observed as DEAD:
2888 if (unlikely(READ_ONCE(sess->state) != RTRS_CLT_CONNECTED))
2954 * It is totally safe to add path in CONNECTING state: coming