summaryrefslogtreecommitdiff
path: root/include/linux/drbd.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-10-27 13:12:07 +0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-03-10 13:34:45 +0300
commit422028b1ca4c07995af82a18abced022ff4c296c (patch)
tree87583c3aab3d8b39c5210de800d5eae79941dc25 /include/linux/drbd.h
parent759fbdfba66e620aceb3e73167e6003d1b8b0b0b (diff)
downloadlinux-422028b1ca4c07995af82a18abced022ff4c296c.tar.xz
drbd: New configuration parameters for dealing with network congestion
net { on_congestion {block|pull-ahead|disconnect}; congestion-fill {sectors}; congestion-extents {al-extents}; } Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd.h')
-rw-r--r--include/linux/drbd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/drbd.h b/include/linux/drbd.h
index ef44c7a0638c..03a08baabf11 100644
--- a/include/linux/drbd.h
+++ b/include/linux/drbd.h
@@ -96,6 +96,12 @@ enum drbd_on_no_data {
OND_SUSPEND_IO
};
+enum drbd_on_congestion {
+ OC_BLOCK,
+ OC_PULL_AHEAD,
+ OC_DISCONNECT,
+};
+
/* KEEP the order, do not delete or insert. Only append. */
enum drbd_ret_codes {
ERR_CODE_BASE = 100,
@@ -146,6 +152,7 @@ enum drbd_ret_codes {
ERR_PERM = 152,
ERR_NEED_APV_93 = 153,
ERR_STONITH_AND_PROT_A = 154,
+ ERR_CONG_NOT_PROTO_A = 155,
/* insert new ones above this line */
AFTER_LAST_ERR_CODE