Lines Matching refs:state
39 * We track the state of the socket on a given connection using
40 * values defined below. The transition to a new socket state is
42 * unexpected state.
45 * | NEW* | transient initial state
278 /* Connection socket state transition functions */
286 printk("%s: unexpected old state %d\n", __func__, old_state);
297 printk("%s: unexpected old state %d\n", __func__, old_state);
308 printk("%s: unexpected old state %d\n", __func__, old_state);
321 printk("%s: unexpected old state %d\n", __func__, old_state);
335 printk("%s: unexpected old state %d\n", __func__, old_state);
356 dout("%s %p state = %d, queueing work\n", __func__,
357 con, con->state);
385 /* socket's state has changed */
390 dout("%s %p state = %d sk_state = %u\n", __func__,
391 con, con->state, sk->sk_state);
536 * and clear *_seq state.
579 con->state = CEPH_CON_S_CLOSED;
604 WARN_ON(con->state != CEPH_CON_S_CLOSED);
605 con->state = CEPH_CON_S_PREOPEN;
648 con->state = CEPH_CON_S_CLOSED;
1474 con->error_msg = "socket closed (con state " #x ")"; \
1477 switch (con->state) {
1559 if (con->state == CEPH_CON_S_STANDBY) {
1563 if (con->state == CEPH_CON_S_CLOSED) {
1568 if (con->state == CEPH_CON_S_PREOPEN) {
1616 dout("fault %p state %d to peer %s\n",
1617 con, con->state, ceph_pr_addr(&con->peer_addr));
1623 WARN_ON(con->state == CEPH_CON_S_STANDBY ||
1624 con->state == CEPH_CON_S_CLOSED);
1630 con->state = CEPH_CON_S_CLOSED;
1638 * the connection in a STANDBY state */
1643 con->state = CEPH_CON_S_STANDBY;
1646 con->state = CEPH_CON_S_PREOPEN;
1716 if (con->state == CEPH_CON_S_STANDBY) {
1718 con->state = CEPH_CON_S_PREOPEN;
1739 if (con->state == CEPH_CON_S_CLOSED) {
1792 WARN_ON(con->state != CEPH_CON_S_OPEN);
1821 WARN_ON(con->state != CEPH_CON_S_OPEN);
2078 if (con->state != CEPH_CON_S_OPEN) {