Lines Matching refs:peer_state
4439 union drbd_state os, ns, peer_state; in receive_state() local
4449 peer_state.i = be32_to_cpu(p->state); in receive_state()
4451 real_peer_disk = peer_state.disk; in receive_state()
4452 if (peer_state.disk == D_NEGOTIATING) { in receive_state()
4483 if (peer_state.conn > C_CONNECTED && in receive_state()
4484 peer_state.conn < C_SYNC_SOURCE) in receive_state()
4491 peer_state.conn == C_CONNECTED) { in receive_state()
4500 peer_state.conn == C_CONNECTED && real_peer_disk == D_UP_TO_DATE) { in receive_state()
4512 os.conn == C_CONNECTED && peer_state.conn > C_SYNC_SOURCE) in receive_state()
4518 if (peer_state.conn == C_AHEAD) in receive_state()
4540 if (device->p_uuid && peer_state.disk >= D_NEGOTIATING && in receive_state()
4549 (peer_state.disk == D_NEGOTIATING || in receive_state()
4557 (peer_state.conn >= C_STARTING_SYNC_S && in receive_state()
4558 peer_state.conn <= C_WF_BITMAP_T)); in receive_state()
4561 ns.conn = drbd_sync_handshake(peer_device, peer_state.role, real_peer_disk); in receive_state()
4568 } else if (peer_state.disk == D_NEGOTIATING) { in receive_state()
4570 peer_state.disk = D_DISKLESS; in receive_state()
4586 ns.peer = peer_state.role; in receive_state()
4588 ns.peer_isp = (peer_state.aftr_isp | peer_state.user_isp); in receive_state()
4614 if (ns.conn > C_CONNECTED && peer_state.conn <= C_CONNECTED && in receive_state()
4615 peer_state.disk != D_NEGOTIATING ) { in receive_state()