Lines Matching refs:peer_state
4399 union drbd_state os, ns, peer_state; in receive_state() local
4409 peer_state.i = be32_to_cpu(p->state); in receive_state()
4411 real_peer_disk = peer_state.disk; in receive_state()
4412 if (peer_state.disk == D_NEGOTIATING) { in receive_state()
4443 if (peer_state.conn > C_CONNECTED && in receive_state()
4444 peer_state.conn < C_SYNC_SOURCE) in receive_state()
4451 peer_state.conn == C_CONNECTED) { in receive_state()
4460 peer_state.conn == C_CONNECTED && real_peer_disk == D_UP_TO_DATE) { in receive_state()
4472 os.conn == C_CONNECTED && peer_state.conn > C_SYNC_SOURCE) in receive_state()
4478 if (peer_state.conn == C_AHEAD) in receive_state()
4500 if (device->p_uuid && peer_state.disk >= D_NEGOTIATING && in receive_state()
4509 (peer_state.disk == D_NEGOTIATING || in receive_state()
4517 (peer_state.conn >= C_STARTING_SYNC_S && in receive_state()
4518 peer_state.conn <= C_WF_BITMAP_T)); in receive_state()
4521 ns.conn = drbd_sync_handshake(peer_device, peer_state.role, real_peer_disk); in receive_state()
4528 } else if (peer_state.disk == D_NEGOTIATING) { in receive_state()
4530 peer_state.disk = D_DISKLESS; in receive_state()
4546 ns.peer = peer_state.role; in receive_state()
4548 ns.peer_isp = (peer_state.aftr_isp | peer_state.user_isp); in receive_state()
4574 if (ns.conn > C_CONNECTED && peer_state.conn <= C_CONNECTED && in receive_state()
4575 peer_state.disk != D_NEGOTIATING ) { in receive_state()