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

Commit 999122bc authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Removing a by now obsolete clause in the state sanitizing

parent 18a50fa2
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -847,9 +847,6 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state
	if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY)
		ns.aftr_isp = 0;

	if (ns.conn <= C_DISCONNECTING && ns.disk == D_DISKLESS)
		ns.pdsk = D_UNKNOWN;

	/* Abort resync if a disk fails/detaches */
	if (os.conn > C_CONNECTED && ns.conn > C_CONNECTED &&
	    (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) {