diff options
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 6 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 4 | ||||
-rw-r--r-- | include/linux/drbd_limits.h | 24 | ||||
-rw-r--r-- | include/linux/drbd_nl.h | 4 |
4 files changed, 25 insertions, 13 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 410d3d4f361e..5a484c1f5ce7 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -2690,7 +2690,11 @@ static void drbd_set_defaults(struct drbd_conf *mdev) | |||
2690 | /* .cpu_mask = */ {}, 0, | 2690 | /* .cpu_mask = */ {}, 0, |
2691 | /* .csums_alg = */ {}, 0, | 2691 | /* .csums_alg = */ {}, 0, |
2692 | /* .use_rle = */ 0, | 2692 | /* .use_rle = */ 0, |
2693 | /* .on_no_data = */ DRBD_ON_NO_DATA_DEF | 2693 | /* .on_no_data = */ DRBD_ON_NO_DATA_DEF, |
2694 | /* .c_plan_ahead = */ DRBD_C_PLAN_AHEAD_DEF, | ||
2695 | /* .c_delay_target = */ DRBD_C_DELAY_TARGET_DEF, | ||
2696 | /* .c_fill_target = */ DRBD_C_FILL_TARGET_DEF, | ||
2697 | /* .c_max_rate = */ DRBD_C_MAX_RATE_DEF | ||
2694 | }; | 2698 | }; |
2695 | 2699 | ||
2696 | /* Have to use that way, because the layout differs between | 2700 | /* Have to use that way, because the layout differs between |
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index 6c08e637e25c..7d384fd39c16 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c | |||
@@ -1599,6 +1599,10 @@ static int drbd_nl_syncer_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *n | |||
1599 | sc.after = DRBD_AFTER_DEF; | 1599 | sc.after = DRBD_AFTER_DEF; |
1600 | sc.al_extents = DRBD_AL_EXTENTS_DEF; | 1600 | sc.al_extents = DRBD_AL_EXTENTS_DEF; |
1601 | sc.on_no_data = DRBD_ON_NO_DATA_DEF; | 1601 | sc.on_no_data = DRBD_ON_NO_DATA_DEF; |
1602 | sc.c_plan_ahead = DRBD_C_PLAN_AHEAD_DEF; | ||
1603 | sc.c_delay_target = DRBD_C_DELAY_TARGET_DEF; | ||
1604 | sc.c_fill_target = DRBD_C_FILL_TARGET_DEF; | ||
1605 | sc.c_max_rate = DRBD_C_MAX_RATE_DEF; | ||
1602 | } else | 1606 | } else |
1603 | memcpy(&sc, &mdev->sync_conf, sizeof(struct syncer_conf)); | 1607 | memcpy(&sc, &mdev->sync_conf, sizeof(struct syncer_conf)); |
1604 | 1608 | ||
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 7eb1e98009ec..06dbba47a8ef 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
@@ -134,21 +134,21 @@ | |||
134 | #define DRBD_MAX_BIO_BVECS_MAX 128 | 134 | #define DRBD_MAX_BIO_BVECS_MAX 128 |
135 | #define DRBD_MAX_BIO_BVECS_DEF 0 | 135 | #define DRBD_MAX_BIO_BVECS_DEF 0 |
136 | 136 | ||
137 | #define DRBD_DP_VOLUME_MIN 4 | 137 | #define DRBD_C_PLAN_AHEAD_MIN 0 |
138 | #define DRBD_DP_VOLUME_MAX 1048576 | 138 | #define DRBD_C_PLAN_AHEAD_MAX 300 |
139 | #define DRBD_DP_VOLUME_DEF 16384 | 139 | #define DRBD_C_PLAN_AHEAD_DEF 0 /* RS rate controller disabled by default */ |
140 | 140 | ||
141 | #define DRBD_DP_INTERVAL_MIN 1 | 141 | #define DRBD_C_DELAY_TARGET_MIN 1 |
142 | #define DRBD_DP_INTERVAL_MAX 600 | 142 | #define DRBD_C_DELAY_TARGET_MAX 100 |
143 | #define DRBD_DP_INTERVAL_DEF 5 | 143 | #define DRBD_C_DELAY_TARGET_DEF 10 |
144 | 144 | ||
145 | #define DRBD_RS_THROTTLE_TH_MIN 1 | 145 | #define DRBD_C_FILL_TARGET_MIN 0 |
146 | #define DRBD_RS_THROTTLE_TH_MAX 600 | 146 | #define DRBD_C_FILL_TARGET_MAX 100000 |
147 | #define DRBD_RS_THROTTLE_TH_DEF 20 | 147 | #define DRBD_C_FILL_TARGET_DEF 0 /* By default disabled -> controlled by delay_target */ |
148 | 148 | ||
149 | #define DRBD_RS_HOLD_OFF_TH_MIN 1 | 149 | #define DRBD_C_MAX_RATE_MIN 250 /* kByte/sec */ |
150 | #define DRBD_RS_HOLD_OFF_TH_MAX 6000 | 150 | #define DRBD_C_MAX_RATE_MAX (4 << 20) |
151 | #define DRBD_RS_HOLD_OFF_TH_DEF 100 | 151 | #define DRBD_C_MAX_RATE_DEF 102400 |
152 | 152 | ||
153 | #undef RANGE | 153 | #undef RANGE |
154 | #endif | 154 | #endif |
diff --git a/include/linux/drbd_nl.h b/include/linux/drbd_nl.h index 9aebd0d80a5d..e23683c87ca1 100644 --- a/include/linux/drbd_nl.h +++ b/include/linux/drbd_nl.h | |||
@@ -88,6 +88,10 @@ NL_PACKET(syncer_conf, 8, | |||
88 | NL_STRING( 64, T_MAY_IGNORE, csums_alg, SHARED_SECRET_MAX) | 88 | NL_STRING( 64, T_MAY_IGNORE, csums_alg, SHARED_SECRET_MAX) |
89 | NL_BIT( 65, T_MAY_IGNORE, use_rle) | 89 | NL_BIT( 65, T_MAY_IGNORE, use_rle) |
90 | NL_INTEGER( 75, T_MAY_IGNORE, on_no_data) | 90 | NL_INTEGER( 75, T_MAY_IGNORE, on_no_data) |
91 | NL_INTEGER( 76, T_MAY_IGNORE, c_plan_ahead) | ||
92 | NL_INTEGER( 77, T_MAY_IGNORE, c_delay_target) | ||
93 | NL_INTEGER( 78, T_MAY_IGNORE, c_fill_target) | ||
94 | NL_INTEGER( 79, T_MAY_IGNORE, c_max_rate) | ||
91 | ) | 95 | ) |
92 | 96 | ||
93 | NL_PACKET(invalidate, 9, ) | 97 | NL_PACKET(invalidate, 9, ) |