drbd: reset ap_in_flight counter for new connections
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Родитель
b949be5857
Коммит
2d56a974f3
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче