diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-03-21 09:10:15 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:44:51 -0500 |
commit | 0916e0e308716387f16462f66b53c9128587fd0b (patch) | |
tree | e220018d0b28b983b21ff0ab8b4abd1912795f1c /drivers/block/drbd/drbd_receiver.c | |
parent | 0829f5edf37cb1731e97066288f520de85b7b5e5 (diff) |
drbd: Always use the same protocol version for the same peer
There is no need to send protocol 80 headers to peers that understand
protocol 95 headers. Make sure that we don't send protocol 95 headers
until we have agreed upon a protocol version with our peer, though.
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 6a3e628b68c6..27d4a4520641 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -819,9 +819,9 @@ static int drbd_connect(struct drbd_tconn *tconn) | |||
819 | return -2; | 819 | return -2; |
820 | 820 | ||
821 | clear_bit(DISCARD_CONCURRENT, &tconn->flags); | 821 | clear_bit(DISCARD_CONCURRENT, &tconn->flags); |
822 | tconn->agreed_pro_version = 99; | 822 | |
823 | /* agreed_pro_version must be smaller than 100 so we send the old | 823 | /* Assume that the peer only understands protocol 80 until we know better. */ |
824 | header (h80) in the first packet and in the handshake packet. */ | 824 | tconn->agreed_pro_version = 80; |
825 | 825 | ||
826 | sock = NULL; | 826 | sock = NULL; |
827 | msock = NULL; | 827 | msock = NULL; |