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

Commit 59817f4f authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Do not cleanup resync LRU for the Ahead/Behind SyncSource/SyncTarget transitions



This one should be replaced with moving this cleanup to the
'right' position.

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent c4752ef1
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -1485,8 +1485,13 @@ void drbd_start_resync(struct drbd_conf *mdev, enum drbd_conns side)
		return;
		return;
	}
	}


	if (mdev->state.conn < C_AHEAD) {
		/* In case a previous resync run was aborted by an IO error/detach on the peer. */
		/* In case a previous resync run was aborted by an IO error/detach on the peer. */
		drbd_rs_cancel_all(mdev);
		drbd_rs_cancel_all(mdev);
		/* This should be done when we abort the resync. We definitely do not
		   want to have this for connections going back and forth between
		   Ahead/Behind and SyncSource/SyncTarget */
	}


	if (side == C_SYNC_TARGET) {
	if (side == C_SYNC_TARGET) {
		/* Since application IO was locked out during C_WF_BITMAP_T and
		/* Since application IO was locked out during C_WF_BITMAP_T and