diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-05-12 11:08:26 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 08:35:58 -0400 |
commit | 11b58e73a3a3d1bbb582370d59f9b2c4d0136b42 (patch) | |
tree | 9ca5b48e368da91f6cc1888440b6ea9ffe9a7e3f /drivers/block/drbd/drbd_int.h | |
parent | 2a80699f807885d501f08a7006f6a56c1c937a6e (diff) |
drbd: factored tl_restart() out of tl_clear().
If IO was frozen for a temporal network outage, resend the
content of the transfer-log into the newly established connection.
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_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 11b7c6f84cd3..bef9138f1975 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -1138,6 +1138,8 @@ extern void drbd_free_resources(struct drbd_conf *mdev); | |||
1138 | extern void tl_release(struct drbd_conf *mdev, unsigned int barrier_nr, | 1138 | extern void tl_release(struct drbd_conf *mdev, unsigned int barrier_nr, |
1139 | unsigned int set_size); | 1139 | unsigned int set_size); |
1140 | extern void tl_clear(struct drbd_conf *mdev); | 1140 | extern void tl_clear(struct drbd_conf *mdev); |
1141 | enum drbd_req_event; | ||
1142 | extern void tl_restart(struct drbd_conf *mdev, enum drbd_req_event what); | ||
1141 | extern void _tl_add_barrier(struct drbd_conf *, struct drbd_tl_epoch *); | 1143 | extern void _tl_add_barrier(struct drbd_conf *, struct drbd_tl_epoch *); |
1142 | extern void drbd_free_sock(struct drbd_conf *mdev); | 1144 | extern void drbd_free_sock(struct drbd_conf *mdev); |
1143 | extern int drbd_send(struct drbd_conf *mdev, struct socket *sock, | 1145 | extern int drbd_send(struct drbd_conf *mdev, struct socket *sock, |