diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 3 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 13 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_req.c | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index d764f3cd5866..921793ca18a5 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c | |||
@@ -208,9 +208,6 @@ enum drbd_disk_state drbd_try_outdate_peer(struct drbd_conf *mdev) | |||
208 | return mdev->state.pdsk; | 208 | return mdev->state.pdsk; |
209 | } | 209 | } |
210 | 210 | ||
211 | if (fp == FP_STONITH) | ||
212 | _drbd_request_state(mdev, NS(susp, 1), CS_WAIT_COMPLETE); | ||
213 | |||
214 | r = drbd_khelper(mdev, "fence-peer"); | 211 | r = drbd_khelper(mdev, "fence-peer"); |
215 | 212 | ||
216 | switch ((r>>8) & 0xff) { | 213 | switch ((r>>8) & 0xff) { |
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 101ad186244c..3a8131a26559 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -3265,7 +3265,18 @@ static int receive_state(struct drbd_conf *mdev, struct p_header *h) | |||
3265 | ns.peer_isp = (peer_state.aftr_isp | peer_state.user_isp); | 3265 | ns.peer_isp = (peer_state.aftr_isp | peer_state.user_isp); |
3266 | if ((nconn == C_CONNECTED || nconn == C_WF_BITMAP_S) && ns.disk == D_NEGOTIATING) | 3266 | if ((nconn == C_CONNECTED || nconn == C_WF_BITMAP_S) && ns.disk == D_NEGOTIATING) |
3267 | ns.disk = mdev->new_state_tmp.disk; | 3267 | ns.disk = mdev->new_state_tmp.disk; |
3268 | 3268 | if (ns.pdsk == D_CONSISTENT && ns.susp && nconn == C_CONNECTED && oconn < C_CONNECTED && | |
3269 | test_bit(NEW_CUR_UUID, &mdev->flags)) { | ||
3270 | /* Do not allow tl_restart(resend) for a rebooted peer. We can only allow this | ||
3271 | for temporal network outages! */ | ||
3272 | spin_unlock_irq(&mdev->req_lock); | ||
3273 | dev_err(DEV, "Aborting Connect, can not thaw IO with an only Consistent peer\n"); | ||
3274 | tl_clear(mdev); | ||
3275 | drbd_uuid_new_current(mdev); | ||
3276 | clear_bit(NEW_CUR_UUID, &mdev->flags); | ||
3277 | drbd_force_state(mdev, NS2(conn, C_PROTOCOL_ERROR, susp, 0)); | ||
3278 | return FALSE; | ||
3279 | } | ||
3269 | rv = _drbd_set_state(mdev, ns, CS_VERBOSE | CS_HARD, NULL); | 3280 | rv = _drbd_set_state(mdev, ns, CS_VERBOSE | CS_HARD, NULL); |
3270 | ns = mdev->state; | 3281 | ns = mdev->state; |
3271 | spin_unlock_irq(&mdev->req_lock); | 3282 | spin_unlock_irq(&mdev->req_lock); |
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index fbe027886bad..76b668245612 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c | |||
@@ -662,7 +662,7 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what, | |||
662 | /* If RQ_NET_OK is already set, we got a P_WRITE_ACK or P_RECV_ACK | 662 | /* If RQ_NET_OK is already set, we got a P_WRITE_ACK or P_RECV_ACK |
663 | before the connection loss (B&C only); only P_BARRIER_ACK was missing. | 663 | before the connection loss (B&C only); only P_BARRIER_ACK was missing. |
664 | Trowing them out of the TL here by pretending we got a BARRIER_ACK | 664 | Trowing them out of the TL here by pretending we got a BARRIER_ACK |
665 | TODO: Either resync them, or ensure peer was not rebooted. */ | 665 | We ensure that the peer was not rebooted */ |
666 | if (!(req->rq_state & RQ_NET_OK)) { | 666 | if (!(req->rq_state & RQ_NET_OK)) { |
667 | if (req->w.cb) { | 667 | if (req->w.cb) { |
668 | drbd_queue_work(&mdev->data.work, &req->w); | 668 | drbd_queue_work(&mdev->data.work, &req->w); |