diff options
| author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-06-29 08:06:08 -0400 |
|---|---|---|
| committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-05-09 09:10:45 -0400 |
| commit | dfa8bedbfe881caf6676704ab1aae18dfe8e430a (patch) | |
| tree | 416102d8cd59c6be45b072c2ce123c6cb8f63f52 /include | |
| parent | 02ee8f95fadf7c94b3d28df436a095152f6392b2 (diff) | |
drbd: Implemented the disk-timeout option
When the disk-timeout is active, and it expires for a single request,
we consider the local disk as D_FAILED. Note: With this change,
I made both timeout based state transitions HARD state transitions.
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_limits.h | 5 | ||||
| -rw-r--r-- | include/linux/drbd_nl.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 928c84dfaf4..fb670bf603f 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
| @@ -48,6 +48,11 @@ | |||
| 48 | #define DRBD_TIMEOUT_MAX 600 | 48 | #define DRBD_TIMEOUT_MAX 600 |
| 49 | #define DRBD_TIMEOUT_DEF 60 /* 6 seconds */ | 49 | #define DRBD_TIMEOUT_DEF 60 /* 6 seconds */ |
| 50 | 50 | ||
| 51 | /* If backing disk takes longer than disk_timeout, mark the disk as failed */ | ||
| 52 | #define DRBD_DISK_TIMEOUT_MIN 0 /* 0 = disabled */ | ||
| 53 | #define DRBD_DISK_TIMEOUT_MAX 6000 /* 10 Minutes */ | ||
| 54 | #define DRBD_DISK_TIMEOUT_DEF 0 /* disabled */ | ||
| 55 | |||
| 51 | /* active connection retries when C_WF_CONNECTION */ | 56 | /* active connection retries when C_WF_CONNECTION */ |
| 52 | #define DRBD_CONNECT_INT_MIN 1 | 57 | #define DRBD_CONNECT_INT_MIN 1 |
| 53 | #define DRBD_CONNECT_INT_MAX 120 | 58 | #define DRBD_CONNECT_INT_MAX 120 |
diff --git a/include/linux/drbd_nl.h b/include/linux/drbd_nl.h index 7203c9ead23..a8706f08ab3 100644 --- a/include/linux/drbd_nl.h +++ b/include/linux/drbd_nl.h | |||
| @@ -31,6 +31,7 @@ NL_PACKET(disk_conf, 3, | |||
| 31 | NL_INTEGER( 56, T_MAY_IGNORE, max_bio_bvecs) | 31 | NL_INTEGER( 56, T_MAY_IGNORE, max_bio_bvecs) |
| 32 | NL_BIT( 57, T_MAY_IGNORE, no_disk_barrier) | 32 | NL_BIT( 57, T_MAY_IGNORE, no_disk_barrier) |
| 33 | NL_BIT( 58, T_MAY_IGNORE, no_disk_drain) | 33 | NL_BIT( 58, T_MAY_IGNORE, no_disk_drain) |
| 34 | NL_INTEGER( 89, T_MAY_IGNORE, disk_timeout) | ||
| 34 | ) | 35 | ) |
| 35 | 36 | ||
| 36 | NL_PACKET(detach, 4, | 37 | NL_PACKET(detach, 4, |
