aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-05-06 09:19:30 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-05-17 19:28:08 -0400
commit162f3ec7f026784ff2e216f19147d67e2f8ccd56 (patch)
treeef211a8348dc4862da7ce21c315aed2e37e8de7b /drivers/block/drbd/drbd_int.h
parenta8cdfd8d3bf0b6d2bbe792f5e74f54ccc6bc1d4f (diff)
drbd: Fixes to the new delay_probes code
* Only send delay_probes with protocol 93 or newer * drbd_send_delay_probes() is called only from worker context, no atomic_t needed for delay_seq 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index 37380d2c869d..45d9a4534c40 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -552,7 +552,7 @@ struct p_delay_probe {
552 552
553struct delay_probe { 553struct delay_probe {
554 struct list_head list; 554 struct list_head list;
555 int seq_num; 555 unsigned int seq_num;
556 struct timeval time; 556 struct timeval time;
557}; 557};
558 558
@@ -1048,9 +1048,9 @@ struct drbd_conf {
1048 char congestion_reason; /* Why we where congested... */ 1048 char congestion_reason; /* Why we where congested... */
1049 struct list_head delay_probes; /* protected by peer_seq_lock */ 1049 struct list_head delay_probes; /* protected by peer_seq_lock */
1050 int data_delay; /* Delay of packets on the data-sock behind meta-sock */ 1050 int data_delay; /* Delay of packets on the data-sock behind meta-sock */
1051 atomic_t delay_seq; /* To generate sequence numbers of delay probes */ 1051 unsigned int delay_seq; /* To generate sequence numbers of delay probes */
1052 struct timeval dps_time; /* delay-probes-start-time */ 1052 struct timeval dps_time; /* delay-probes-start-time */
1053 int dp_volume_last; /* send_cnt of last delay probe */ 1053 unsigned int dp_volume_last; /* send_cnt of last delay probe */
1054 int c_sync_rate; /* current resync rate after delay_probe magic */ 1054 int c_sync_rate; /* current resync rate after delay_probe magic */
1055}; 1055};
1056 1056