summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-01-20 15:23:07 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-08-29 11:26:53 +0200
commit8b946255f8467e30f98988be426d8c1604d63ffd (patch)
treecc3ba581be38ac099dced059eec6fcf63f7fbd6b /drivers/block/drbd/drbd_int.h
parent010f6e678ffddbf3134863038c5b2f6509f1eed3 (diff)
downloadlwn-8b946255f8467e30f98988be426d8c1604d63ffd.tar.gz
lwn-8b946255f8467e30f98988be426d8c1604d63ffd.zip
drbd: Use interval tree for overlapping epoch entry detection
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index fa722a986e07..751a4d4ff070 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -1080,6 +1080,9 @@ struct drbd_conf {
struct hlist_head *ee_hash; /* is proteced by req_lock! */
unsigned int ee_hash_s;
+ /* Interval tree of pending remote write requests (struct drbd_epoch_entry) */
+ struct rb_root epoch_entries;
+
/* this one is protected by ee_lock, single thread */
struct drbd_epoch_entry *last_write_w_barrier;