diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2012-02-20 15:53:28 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:58:31 -0500 |
commit | 9a51ab1c1b3c1e21f076cdd571bbe6ca7d1b504c (patch) | |
tree | 863ba573f9a803d5f64979dae566a89ea22bbe5f /include | |
parent | 26ec92871be1e6bd48d0be9ab38ee1ebbeea49f1 (diff) |
drbd: New disk option al-updates
By disabling al-updates one might increase performace. The price for
that is that in case a crashed primary (that had al-updates disabled)
is reintegraded, it will receive a full-resync instead of a bitmap
based resync.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/drbd.h | 1 | ||||
-rw-r--r-- | include/linux/drbd_genl.h | 3 | ||||
-rw-r--r-- | include/linux/drbd_limits.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/drbd.h b/include/linux/drbd.h index 1e86156c10f7..36ae7dd28d90 100644 --- a/include/linux/drbd.h +++ b/include/linux/drbd.h | |||
@@ -338,6 +338,7 @@ extern const char *drbd_set_st_err_str(enum drbd_state_rv); | |||
338 | #define MDF_PEER_OUT_DATED (1 << 5) | 338 | #define MDF_PEER_OUT_DATED (1 << 5) |
339 | #define MDF_CRASHED_PRIMARY (1 << 6) | 339 | #define MDF_CRASHED_PRIMARY (1 << 6) |
340 | #define MDF_AL_CLEAN (1 << 7) | 340 | #define MDF_AL_CLEAN (1 << 7) |
341 | #define MDF_AL_DISABLED (1 << 8) | ||
341 | 342 | ||
342 | enum drbd_uuid_index { | 343 | enum drbd_uuid_index { |
343 | UI_CURRENT, | 344 | UI_CURRENT, |
diff --git a/include/linux/drbd_genl.h b/include/linux/drbd_genl.h index 826008f297fe..92ec4b50a885 100644 --- a/include/linux/drbd_genl.h +++ b/include/linux/drbd_genl.h | |||
@@ -130,6 +130,8 @@ GENL_struct(DRBD_NLA_DISK_CONF, 3, disk_conf, | |||
130 | __flg_field_def(19, DRBD_GENLA_F_MANDATORY, md_flushes, DRBD_MD_FLUSHES_DEF) | 130 | __flg_field_def(19, DRBD_GENLA_F_MANDATORY, md_flushes, DRBD_MD_FLUSHES_DEF) |
131 | __u32_field_def(20, DRBD_GENLA_F_MANDATORY, disk_timeout, DRBD_DISK_TIMEOUT_DEF) | 131 | __u32_field_def(20, DRBD_GENLA_F_MANDATORY, disk_timeout, DRBD_DISK_TIMEOUT_DEF) |
132 | __u32_field_def(21, 0 /* OPTIONAL */, read_balancing, DRBD_READ_BALANCING_DEF) | 132 | __u32_field_def(21, 0 /* OPTIONAL */, read_balancing, DRBD_READ_BALANCING_DEF) |
133 | /* 9: __u32_field_def(22, DRBD_GENLA_F_MANDATORY, unplug_watermark, DRBD_UNPLUG_WATERMARK_DEF) */ | ||
134 | __flg_field_def(23, 0 /* OPTIONAL */, al_updates, DRBD_AL_UPDATES_DEF) | ||
133 | ) | 135 | ) |
134 | 136 | ||
135 | GENL_struct(DRBD_NLA_RESOURCE_OPTS, 4, res_opts, | 137 | GENL_struct(DRBD_NLA_RESOURCE_OPTS, 4, res_opts, |
@@ -168,6 +170,7 @@ GENL_struct(DRBD_NLA_NET_CONF, 5, net_conf, | |||
168 | __flg_field_def(27, DRBD_GENLA_F_MANDATORY, always_asbp, DRBD_ALWAYS_ASBP_DEF) | 170 | __flg_field_def(27, DRBD_GENLA_F_MANDATORY, always_asbp, DRBD_ALWAYS_ASBP_DEF) |
169 | __flg_field(28, DRBD_GENLA_F_MANDATORY | DRBD_F_INVARIANT, tentative) | 171 | __flg_field(28, DRBD_GENLA_F_MANDATORY | DRBD_F_INVARIANT, tentative) |
170 | __flg_field_def(29, DRBD_GENLA_F_MANDATORY, use_rle, DRBD_USE_RLE_DEF) | 172 | __flg_field_def(29, DRBD_GENLA_F_MANDATORY, use_rle, DRBD_USE_RLE_DEF) |
173 | /* 9: __u32_field_def(30, DRBD_GENLA_F_MANDATORY, fencing_policy, DRBD_FENCING_DEF) */ | ||
171 | ) | 174 | ) |
172 | 175 | ||
173 | GENL_struct(DRBD_NLA_SET_ROLE_PARMS, 6, set_role_parms, | 176 | GENL_struct(DRBD_NLA_SET_ROLE_PARMS, 6, set_role_parms, |
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 17ef66a5c114..1fa19c5f5e64 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
@@ -210,6 +210,7 @@ | |||
210 | #define DRBD_DISK_DRAIN_DEF 1 | 210 | #define DRBD_DISK_DRAIN_DEF 1 |
211 | #define DRBD_MD_FLUSHES_DEF 1 | 211 | #define DRBD_MD_FLUSHES_DEF 1 |
212 | #define DRBD_TCP_CORK_DEF 1 | 212 | #define DRBD_TCP_CORK_DEF 1 |
213 | #define DRBD_AL_UPDATES_DEF 1 | ||
213 | 214 | ||
214 | #define DRBD_ALLOW_TWO_PRIMARIES_DEF 0 | 215 | #define DRBD_ALLOW_TWO_PRIMARIES_DEF 0 |
215 | #define DRBD_ALWAYS_ASBP_DEF 0 | 216 | #define DRBD_ALWAYS_ASBP_DEF 0 |