Lines Matching refs:peer

353 	enum drbd_role peer = R_UNKNOWN;
360 peer = max_role(peer, device->state.peer);
364 return peer;
721 drbd_role_str(ns.peer),
754 if (ns.peer != os.peer && flags & CS_DC_PEER)
755 pbp += sprintf(pbp, "peer( %s -> %s ) ",
756 drbd_role_str(os.peer),
757 drbd_role_str(ns.peer));
841 if (ns.peer == R_PRIMARY)
943 * This is a hack. It should really be rejected by the peer during the
1069 /* Implications from connection to peer and peer_isp */
1072 ns.peer = R_UNKNOWN;
1196 ns.susp_fen = 1; /* Suspend IO while fence-peer handler runs (peer lost) */
1421 (device->state.pdsk < D_INCONSISTENT && device->state.peer == R_PRIMARY))
1442 os.peer == R_SECONDARY && ns.peer == R_PRIMARY)
1676 /* takes old and new peer disk state */
1770 * we resume/resent, if the peer is diskless
1797 ns.pdsk > D_DISKLESS && ns.pdsk != D_UNKNOWN) { /* attach on the peer */
1817 /* Lost contact to peer's copy of the data */
1820 if ((ns.role == R_PRIMARY || ns.peer == R_PRIMARY) &&
1834 if (os.peer != R_PRIMARY && ns.peer == R_PRIMARY &&
1840 if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY)
1845 "demote diskless peer", BM_LOCKED_SET_ALLOWED, peer_device);
1869 /* We want to pause/continue resync, tell peer. */
1880 /* Make sure the peer gets informed about eventual state
1975 /* Notify peer that I had a local IO error, and did not detached.. */
1992 /* sync target done with resync. Explicitly notify peer, even though
2005 * if the resync finished cleanly, or aborted because of peer disk
2083 /* case1: The outdate peer handler is successful: */
2116 .peer = R_UNKNOWN,
2136 if (cs.peer != os.peer)
2205 .peer = R_MASK,
2239 ns_max.peer = max_role(ns.peer, ns_max.peer);
2245 ns_min.peer = min_role(ns.peer, ns_min.peer);
2255 .peer = R_UNKNOWN,