@@ -38,9 +38,6 @@ use uuid::Uuid;
38
38
/// How often to log stats for DTrace
39
39
const STAT_INTERVAL : Duration = Duration :: from_secs ( 1 ) ;
40
40
41
- /// How often to do IO / bandwidth limit checking
42
- const LEAK_INTERVAL : Duration = Duration :: from_millis ( 1000 ) ;
43
-
44
41
/// How often to do live-repair status checking
45
42
const REPAIR_CHECK_INTERVAL : Duration = Duration :: from_secs ( 10 ) ;
46
43
@@ -92,7 +89,6 @@ pub struct UpCounters {
92
89
action_guest : u64 ,
93
90
action_deferred_block : u64 ,
94
91
action_deferred_message : u64 ,
95
- action_leak_check : u64 ,
96
92
action_flush_check : u64 ,
97
93
action_stat_check : u64 ,
98
94
action_repair_check : u64 ,
@@ -108,7 +104,6 @@ impl UpCounters {
108
104
action_guest : 0 ,
109
105
action_deferred_block : 0 ,
110
106
action_deferred_message : 0 ,
111
- action_leak_check : 0 ,
112
107
action_flush_check : 0 ,
113
108
action_stat_check : 0 ,
114
109
action_repair_check : 0 ,
@@ -141,7 +136,6 @@ impl UpCounters {
141
136
/// - Client timeout
142
137
/// - Client ping intervals
143
138
/// - Live-repair checks
144
- /// - IOPS leaking
145
139
/// - Automatic flushes
146
140
/// - DTrace logging of stats
147
141
/// - Control requests from the controller server
@@ -236,9 +230,6 @@ pub(crate) struct Upstairs {
236
230
/// Next time to check for repairs
237
231
repair_check_deadline : Option < Instant > ,
238
232
239
- /// Next time to leak IOP / bandwidth tokens from the Guest
240
- leak_deadline : Instant ,
241
-
242
233
/// Next time to trigger an automatic flush
243
234
flush_deadline : Instant ,
244
235
@@ -278,7 +269,6 @@ pub(crate) enum UpstairsAction {
278
269
/// A deferred message has arrived
279
270
DeferredMessage ( DeferredMessage ) ,
280
271
281
- LeakCheck ,
282
272
FlushCheck ,
283
273
StatUpdate ,
284
274
RepairCheck ,
@@ -414,7 +404,6 @@ impl Upstairs {
414
404
state : UpstairsState :: Initializing ,
415
405
cfg,
416
406
repair_check_deadline : None ,
417
- leak_deadline : now + LEAK_INTERVAL ,
418
407
flush_deadline : now + flush_interval,
419
408
stat_deadline : now + STAT_INTERVAL ,
420
409
flush_interval,
@@ -525,9 +514,6 @@ impl Upstairs {
525
514
} ;
526
515
UpstairsAction :: DeferredMessage ( m)
527
516
}
528
- _ = sleep_until( self . leak_deadline) => {
529
- UpstairsAction :: LeakCheck
530
- }
531
517
_ = sleep_until( self . flush_deadline) => {
532
518
UpstairsAction :: FlushCheck
533
519
}
@@ -574,14 +560,6 @@ impl Upstairs {
574
560
. action_deferred_message) ) ;
575
561
self . on_client_message ( m) ;
576
562
}
577
- UpstairsAction :: LeakCheck => {
578
- self . counters . action_leak_check += 1 ;
579
- cdt:: up__action_leak_check!( || ( self
580
- . counters
581
- . action_leak_check) ) ;
582
- // XXX Leak check is currently not implemented
583
- self . leak_deadline = Instant :: now ( ) + LEAK_INTERVAL ;
584
- }
585
563
UpstairsAction :: FlushCheck => {
586
564
self . counters . action_flush_check += 1 ;
587
565
cdt:: up__action_flush_check!( || ( self
0 commit comments