Lines Matching refs:peer_state
3152 union drbd_state os, ns, peer_state; in receive_state() local
3157 peer_state.i = be32_to_cpu(p->state); in receive_state()
3159 real_peer_disk = peer_state.disk; in receive_state()
3160 if (peer_state.disk == D_NEGOTIATING) { in receive_state()
3180 if (peer_state.conn > C_CONNECTED && in receive_state()
3181 peer_state.conn < C_SYNC_SOURCE) in receive_state()
3188 peer_state.conn == C_CONNECTED) { in receive_state()
3201 os.conn == C_CONNECTED && peer_state.conn > C_SYNC_SOURCE) in receive_state()
3207 if (peer_state.conn == C_AHEAD) in receive_state()
3210 if (mdev->p_uuid && peer_state.disk >= D_NEGOTIATING && in receive_state()
3219 (peer_state.disk == D_NEGOTIATING || in receive_state()
3227 (peer_state.conn >= C_STARTING_SYNC_S && in receive_state()
3228 peer_state.conn <= C_WF_BITMAP_T)); in receive_state()
3231 ns.conn = drbd_sync_handshake(mdev, peer_state.role, real_peer_disk); in receive_state()
3238 } else if (peer_state.disk == D_NEGOTIATING) { in receive_state()
3240 peer_state.disk = D_DISKLESS; in receive_state()
3256 ns.peer = peer_state.role; in receive_state()
3258 ns.peer_isp = (peer_state.aftr_isp | peer_state.user_isp); in receive_state()
3284 if (ns.conn > C_CONNECTED && peer_state.conn <= C_CONNECTED && in receive_state()
3285 peer_state.disk != D_NEGOTIATING ) { in receive_state()