drbd: short-circuit in maybe_pull_ahead
If we already "pulled ahead", we can short-circuit, and avoid logging the same messages over and over again. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
08d0dabf48
commit
0c066bc39e
@ -899,6 +899,9 @@ static void maybe_pull_ahead(struct drbd_device *device)
|
|||||||
connection->agreed_pro_version < 96)
|
connection->agreed_pro_version < 96)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (on_congestion == OC_PULL_AHEAD && device->state.conn == C_AHEAD)
|
||||||
|
return; /* nothing to do ... */
|
||||||
|
|
||||||
/* If I don't even have good local storage, we can not reasonably try
|
/* If I don't even have good local storage, we can not reasonably try
|
||||||
* to pull ahead of the peer. We also need the local reference to make
|
* to pull ahead of the peer. We also need the local reference to make
|
||||||
* sure device->act_log is there.
|
* sure device->act_log is there.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user