diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-07-05 07:42:03 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 12:38:12 -0400 |
commit | 9a31d7164d409ca59cfadb7957ac7b0acf4545b8 (patch) | |
tree | 3859b808c97180308d796f87d6af6fd9888b7f5f /drivers | |
parent | d28fd092a55b504a0d699b65802a995086d70647 (diff) |
drbd: New sync parameters for the smart resync rate controller
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 6 | ||||
-rw-r--r-- | drivers/block/drbd/drbd_nl.c | 4 |
2 files changed, 9 insertions, 1 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 | ||