Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa7d9396 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Disallow the peer_disk_state to be D_OUTDATED while connected

parent a8e40792
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -745,6 +745,9 @@ is_valid_state(struct drbd_conf *mdev, union drbd_state ns)
		  mdev->agreed_pro_version < 88)
		rv = SS_NOT_SUPPORTED;

	else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN)
		rv = SS_CONNECTED_OUTDATES;

	return rv;
}