From: Philipp Reisner Date: Wed, 27 Mar 2013 13:08:34 +0000 (+0100) Subject: drbd: reset ap_in_flight counter for new connections X-Git-Tag: v3.10-rc1~48^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d56a974f36ffd1d00aa897bd55e28079aa9e5b7;p=platform%2Fkernel%2Flinux-stable.git drbd: reset ap_in_flight counter for new connections Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index 1921871..cd172b4 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c @@ -849,6 +849,7 @@ int drbd_connected(struct drbd_conf *mdev) err = drbd_send_current_state(mdev); clear_bit(USE_DEGR_WFC_T, &mdev->flags); clear_bit(RESIZE_PENDING, &mdev->flags); + atomic_set(&mdev->ap_in_flight, 0); mod_timer(&mdev->request_timer, jiffies + HZ); /* just start it here. */ return err; }