aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_receiver.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-06-11 07:56:33 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 08:58:36 -0400
commit87f7be4cf88e93069f4cc63baf2ce70fdfc59c63 (patch)
treeb76a190b93d4a5d3629c7f25737e11c8231efd6c /drivers/block/drbd/drbd_receiver.c
parent1616a25493cce727d582886f162c5bb0abd87e6a (diff)
drbd: Run the fence-peer helper asynchronously
Since we can not thaw the transfer log, the next logical step is to allow reconnects while the fence-peer handler runs. 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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index 72bc1a130645..101ad186244c 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -3747,12 +3747,8 @@ static void drbd_disconnect(struct drbd_conf *mdev)
3747 put_ldev(mdev); 3747 put_ldev(mdev);
3748 } 3748 }
3749 3749
3750 if (mdev->state.role == R_PRIMARY) { 3750 if (mdev->state.role == R_PRIMARY && fp >= FP_RESOURCE && mdev->state.pdsk >= D_UNKNOWN)
3751 if (fp >= FP_RESOURCE && mdev->state.pdsk >= D_UNKNOWN) { 3751 drbd_try_outdate_peer_async(mdev);
3752 enum drbd_disk_state nps = drbd_try_outdate_peer(mdev);
3753 drbd_request_state(mdev, NS(pdsk, nps));
3754 }
3755 }
3756 3752
3757 spin_lock_irq(&mdev->req_lock); 3753 spin_lock_irq(&mdev->req_lock);
3758 os = mdev->state; 3754 os = mdev->state;