Skip to content

Commit

Permalink
drbd: Fix for the connection problems on high latency links
Browse files Browse the repository at this point in the history
It seems that the real cause of all the issues where that
we did not noticed in drbd_try_connect() when the other
guy closes one socket if the round trip time gets higher
than 100ms. There were that 100ms hard coded!

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Philipp Reisner committed May 24, 2011
1 parent 76727f6 commit a8e4079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/drbd/drbd_receiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ static int drbd_connect(struct drbd_conf *mdev)
}

if (sock && msock) {
schedule_timeout_interruptible(HZ / 10);
schedule_timeout_interruptible(mdev->net_conf->ping_timeo*HZ/10);
ok = drbd_socket_okay(mdev, &sock);
ok = drbd_socket_okay(mdev, &msock) && ok;
if (ok)
Expand Down

0 comments on commit a8e4079

Please sign in to comment.