summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-11-10 14:56:07 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:58:07 +0100
commit1d2783d532207531ba8e3bfb016a4512dec97666 (patch)
tree47f67473a93ab905687e4333aa4c1d91060fe721 /drivers/block/drbd/drbd_int.h
parentdrbd: Move write_ordering from mdev to tconn (diff)
downloadlinux-1d2783d532207531ba8e3bfb016a4512dec97666.tar.xz
linux-1d2783d532207531ba8e3bfb016a4512dec97666.zip
drbd: Prepare epochs per connection
An epoch object needs a pointer to the mdev it was received for. This is necessary to be able to send the barrier ack packet for the same volume as the original barrier packet was assigned to. This prepares the next step, in which the (receiver side) epoch list is moved from the device (mdev) to the connection (tconn) object. 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 473694605da6..0db20cbb4234 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -585,6 +585,7 @@ struct drbd_tl_epoch {
};
struct drbd_epoch {
+ struct drbd_conf *mdev;
struct list_head list;
unsigned int barrier_nr;
atomic_t epoch_size; /* increased on every request added. */