diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-03-02 09:03:44 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-03-11 10:09:03 -0500 |
commit | 309d1608cce32903d67d47e7545e232c400b6aa0 (patch) | |
tree | 98a201235ac87dce320cef6401e782d34bfb29b0 /drivers/block/drbd/drbd_receiver.c | |
parent | c42b6cf4b38c9726d4b46c48d04197c9ca74d773 (diff) |
drbd: Reduce the time an empty resync takes usually
This mitigates changes introduced with commit:
http://git.drbd.org/?p=drbd-8.3.git;a=commit;h=4b6803a3276652da3737
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index d803e6c257e2..ed9f1de24a71 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -4074,6 +4074,8 @@ static int got_PingAck(struct drbd_conf *mdev, struct p_header *h) | |||
4074 | { | 4074 | { |
4075 | /* restore idle timeout */ | 4075 | /* restore idle timeout */ |
4076 | mdev->meta.socket->sk->sk_rcvtimeo = mdev->net_conf->ping_int*HZ; | 4076 | mdev->meta.socket->sk->sk_rcvtimeo = mdev->net_conf->ping_int*HZ; |
4077 | if (!test_and_set_bit(GOT_PING_ACK, &mdev->flags)) | ||
4078 | wake_up(&mdev->misc_wait); | ||
4077 | 4079 | ||
4078 | return TRUE; | 4080 | return TRUE; |
4079 | } | 4081 | } |