aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_receiver.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-10-27 06:21:30 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 05:34:46 -0500
commit67531718d8f1259f01ab84c2aa25f7b03c7afd46 (patch)
tree6f76323440f8ce3793b5d5f1a19808207f38db5b /drivers/block/drbd/drbd_receiver.c
parent422028b1ca4c07995af82a18abced022ff4c296c (diff)
drbd: Implemented two new connection states Ahead/Behind
In this connection mode, the ahead node no longer replicates application IO. The behind's disk becomes out dated. 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index f3052d871d31..b19e8b2c4ce5 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -3179,6 +3179,9 @@ static int receive_state(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned
3179 if (ns.conn == C_WF_REPORT_PARAMS) 3179 if (ns.conn == C_WF_REPORT_PARAMS)
3180 ns.conn = C_CONNECTED; 3180 ns.conn = C_CONNECTED;
3181 3181
3182 if (peer_state.conn == C_AHEAD)
3183 ns.conn = C_BEHIND;
3184
3182 if (mdev->p_uuid && peer_state.disk >= D_NEGOTIATING && 3185 if (mdev->p_uuid && peer_state.disk >= D_NEGOTIATING &&
3183 get_ldev_if_state(mdev, D_NEGOTIATING)) { 3186 get_ldev_if_state(mdev, D_NEGOTIATING)) {
3184 int cr; /* consider resync */ 3187 int cr; /* consider resync */