summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2011-11-17 14:49:46 +0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 19:58:33 +0400
commitb379c41ed78e83c4443fca4dbfbc358c19e4f24c (patch)
tree4e5a3d472c67835406e4c511ada0277b97798c26 /drivers/block/drbd/drbd_int.h
parent9d05e7c4e7069180370ce9c2c121fd6f7810c5a3 (diff)
downloadlinux-b379c41ed78e83c4443fca4dbfbc358c19e4f24c.tar.xz
drbd: transfer log epoch numbers are now per resource
cherry-picked from drbd 9 devel branch. In preparation of multiple connections, the "barrier number" or "epoch number" needs to be tracked per-resource, not per connection. The sequence number space will not be reset anymore. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index 5b1789af6cdf..d7ca76ce00cb 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -864,6 +864,7 @@ struct drbd_tconn { /* is a resource from the config file */
spinlock_t epoch_lock;
unsigned int epochs;
enum write_ordering_e write_ordering;
+ atomic_t current_tle_nr; /* transfer log epoch number */
unsigned long last_reconnect_jif;
struct drbd_thread receiver;