Home
last modified time | relevance | path

Searched refs:peer_role (Results 1 – 3 of 3) sorted by relevance

/drivers/block/drbd/
Ddrbd_state_change.h21 enum drbd_role peer_role[2]; member
Ddrbd_state.c117 connection_state_change->peer_role[OLD] = in remember_old_state()
188 connection_state_change->peer_role[NEW] = in remember_new_state()
228 OLD_TO_NEW(connection_state_change->peer_role); in copy_old_to_new_state_change()
1564 .conn_role = connection_state_change->peer_role[NEW], in notify_connection_state_change()
1636 if (HAS_CHANGED(connection_state_change->peer_role) || in broadcast_state_change()
Ddrbd_receiver.c3216 static int drbd_uuid_compare(struct drbd_device *const device, enum drbd_role const peer_role, int … in drbd_uuid_compare() argument
3306 if (device->state.role == R_PRIMARY || peer_role == R_PRIMARY) { in drbd_uuid_compare()
3312 if (device->state.role == R_PRIMARY && peer_role == R_PRIMARY) { in drbd_uuid_compare()
3435 enum drbd_role peer_role, in drbd_sync_handshake() argument
3455 hg = drbd_uuid_compare(device, peer_role, &rule_nr); in drbd_sync_handshake()
3500 + (peer_role == R_PRIMARY); in drbd_sync_handshake()