Work around a DRBD sync speed race condition
authorMichael Hanselmann <hansmi@google.com>
Mon, 25 Aug 2008 12:32:00 +0000 (12:32 +0000)
committerMichael Hanselmann <hansmi@google.com>
Mon, 25 Aug 2008 12:32:00 +0000 (12:32 +0000)
commit8613b0b92ab464c07e4ebc3a5cccce94d69249ad
tree8057b5acc32dec1e8a608997e5eb12781d1755f5
parent386af4ee7cbb4b91ac1a4f88fbd66567c51d5669
Work around a DRBD sync speed race condition

When DRBD is doing its dance to establish a connection with its
peer, it also sends the synchronization speed over the wire. In
some cases setting the sync speed only after setting up both
sides can race with DRBD connecting, hence we set it here before
telling DRBD anything about its peer.

Reviewed-by: iustinp
lib/bdev.py