Lines Matching defs: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)
1680 /* takes old and new peer disk state */
1774 * we resume/resent, if the peer is diskless
1801 ns.pdsk > D_DISKLESS && ns.pdsk != D_UNKNOWN) { /* attach on the peer */
1821 /* Lost contact to peer's copy of the data */
1824 if ((ns.role == R_PRIMARY || ns.peer == R_PRIMARY) &&
1838 if (os.peer != R_PRIMARY && ns.peer == R_PRIMARY &&
1844 if (os.peer == R_PRIMARY && ns.peer == R_SECONDARY)
1849 "demote diskless peer", BM_LOCKED_SET_ALLOWED, peer_device);
1873 /* We want to pause/continue resync, tell peer. */
1884 /* Make sure the peer gets informed about eventual state
1979 /* Notify peer that I had a local IO error, and did not detached.. */
1996 /* sync target done with resync. Explicitly notify peer, even though
2009 * if the resync finished cleanly, or aborted because of peer disk
2087 /* case1: The outdate peer handler is successful: */
2120 .peer = R_UNKNOWN,
2140 if (cs.peer != os.peer)
2209 .peer = R_MASK,
2243 ns_max.peer = max_role(ns.peer, ns_max.peer);
2249 ns_min.peer = min_role(ns.peer, ns_min.peer);
2259 .peer = R_UNKNOWN,