diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-27 05:12:07 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-10 05:34:45 -0500 |
commit | 422028b1ca4c07995af82a18abced022ff4c296c (patch) | |
tree | 87583c3aab3d8b39c5210de800d5eae79941dc25 /include/linux/drbd_limits.h | |
parent | 759fbdfba66e620aceb3e73167e6003d1b8b0b0b (diff) |
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_limits.h')
-rw-r--r-- | include/linux/drbd_limits.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 4ac33f34b77e..abf418724e52 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
@@ -129,6 +129,7 @@ | |||
129 | #define DRBD_AFTER_SB_2P_DEF ASB_DISCONNECT | 129 | #define DRBD_AFTER_SB_2P_DEF ASB_DISCONNECT |
130 | #define DRBD_RR_CONFLICT_DEF ASB_DISCONNECT | 130 | #define DRBD_RR_CONFLICT_DEF ASB_DISCONNECT |
131 | #define DRBD_ON_NO_DATA_DEF OND_IO_ERROR | 131 | #define DRBD_ON_NO_DATA_DEF OND_IO_ERROR |
132 | #define DRBD_ON_CONGESTION_DEF OC_BLOCK | ||
132 | 133 | ||
133 | #define DRBD_MAX_BIO_BVECS_MIN 0 | 134 | #define DRBD_MAX_BIO_BVECS_MIN 0 |
134 | #define DRBD_MAX_BIO_BVECS_MAX 128 | 135 | #define DRBD_MAX_BIO_BVECS_MAX 128 |
@@ -154,5 +155,13 @@ | |||
154 | #define DRBD_C_MIN_RATE_MAX (4 << 20) | 155 | #define DRBD_C_MIN_RATE_MAX (4 << 20) |
155 | #define DRBD_C_MIN_RATE_DEF 4096 | 156 | #define DRBD_C_MIN_RATE_DEF 4096 |
156 | 157 | ||
158 | #define DRBD_CONG_FILL_MIN 0 | ||
159 | #define DRBD_CONG_FILL_MAX (10<<21) /* 10GByte in sectors */ | ||
160 | #define DRBD_CONG_FILL_DEF 0 | ||
161 | |||
162 | #define DRBD_CONG_EXTENTS_MIN DRBD_AL_EXTENTS_MIN | ||
163 | #define DRBD_CONG_EXTENTS_MAX DRBD_AL_EXTENTS_MAX | ||
164 | #define DRBD_CONG_EXTENTS_DEF DRBD_AL_EXTENTS_DEF | ||
165 | |||
157 | #undef RANGE | 166 | #undef RANGE |
158 | #endif | 167 | #endif |