diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-05-04 06:33:58 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-05-17 19:25:28 -0400 |
commit | bd26bfc5b4253425d17aa49648ae1f3e976041c4 (patch) | |
tree | f4e052f417333ad045772f2aff52c56e8401ce60 /drivers/block/drbd/drbd_int.h | |
parent | 67c7ddd055c794f0d8e9466ca2d6b5cc0b73d4df (diff) |
drbd: Actually send delay probes
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 3e4d8b574fef..210870ed8a79 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -925,9 +925,11 @@ struct drbd_conf { | |||
925 | unsigned int ko_count; | 925 | unsigned int ko_count; |
926 | struct drbd_work resync_work, | 926 | struct drbd_work resync_work, |
927 | unplug_work, | 927 | unplug_work, |
928 | md_sync_work; | 928 | md_sync_work, |
929 | delay_probe_work; | ||
929 | struct timer_list resync_timer; | 930 | struct timer_list resync_timer; |
930 | struct timer_list md_sync_timer; | 931 | struct timer_list md_sync_timer; |
932 | struct timer_list delay_probe_timer; | ||
931 | 933 | ||
932 | /* Used after attach while negotiating new disk state. */ | 934 | /* Used after attach while negotiating new disk state. */ |
933 | union drbd_state new_state_tmp; | 935 | union drbd_state new_state_tmp; |
@@ -1047,6 +1049,8 @@ struct drbd_conf { | |||
1047 | int data_delay; /* Delay of packets on the data-sock behind meta-sock */ | 1049 | int data_delay; /* Delay of packets on the data-sock behind meta-sock */ |
1048 | atomic_t delay_seq; /* To generate sequence numbers of delay probes */ | 1050 | atomic_t delay_seq; /* To generate sequence numbers of delay probes */ |
1049 | struct timeval dps_time; /* delay-probes-start-time */ | 1051 | struct timeval dps_time; /* delay-probes-start-time */ |
1052 | int dp_volume_last; /* send_cnt of last delay probe */ | ||
1053 | int c_sync_rate; /* current resync rate after delay_probe magic */ | ||
1050 | }; | 1054 | }; |
1051 | 1055 | ||
1052 | static inline struct drbd_conf *minor_to_mdev(unsigned int minor) | 1056 | static inline struct drbd_conf *minor_to_mdev(unsigned int minor) |