diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-03-02 15:03:44 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-03-11 16:09:03 +0100 |
commit | 309d1608cce32903d67d47e7545e232c400b6aa0 (patch) | |
tree | 98a201235ac87dce320cef6401e782d34bfb29b0 /drivers/block/drbd/drbd_receiver.c | |
parent | drbd: add missing drbd command names to avoid <NULL> in error messages (diff) | |
download | linux-309d1608cce32903d67d47e7545e232c400b6aa0.tar.xz linux-309d1608cce32903d67d47e7545e232c400b6aa0.zip |
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) { /* restore idle timeout */ mdev->meta.socket->sk->sk_rcvtimeo = mdev->net_conf->ping_int*HZ; + if (!test_and_set_bit(GOT_PING_ACK, &mdev->flags)) + wake_up(&mdev->misc_wait); return TRUE; } |