Skip to content

Commit 9fa1755

Browse files
author
David Scott
committed
local allocator: avoid printing 'sleeping for 5s' or similar
This will be less interesting than the metadata tracing will be. Signed-off-by: David Scott <[email protected]>
1 parent ee386d6 commit 9fa1755

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

xenvm-local-allocator/local_allocator.ml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ let rec try_forever msg f =
2828
>>= function
2929
| `Ok x -> return (`Ok x)
3030
| `Error `Retry ->
31-
debug "%s: retrying after 5s" msg;
3231
Lwt_unix.sleep 5.
3332
>>= fun () ->
3433
try_forever msg f
@@ -85,7 +84,6 @@ module FromLVM = struct
8584
>>= function
8685
| `Suspended -> return ()
8786
| `Running ->
88-
debug "FromLVM.suspend got `Running; sleeping";
8987
Lwt_unix.sleep 5.
9088
>>= fun () ->
9189
wait () in
@@ -99,7 +97,6 @@ module FromLVM = struct
9997
fatal_error "reading state of FromLVM" (R.Consumer.state t)
10098
>>= function
10199
| `Suspended ->
102-
debug "FromLVM.resume got `Suspended; sleeping";
103100
Lwt_unix.sleep 5.
104101
>>= fun () ->
105102
wait ()
@@ -122,15 +119,13 @@ module ToLVM = struct
122119
>>= function
123120
| `Ok x -> return x
124121
| _ ->
125-
debug "ToLVM.attach got `Error; sleeping";
126122
Lwt_unix.sleep 5.
127123
>>= fun () ->
128124
attach ~disk ()
129125
let state t =
130126
fatal_error "querying ToLVM state" (R.Producer.state t)
131127
let rec push t item = R.Producer.push ~t ~item () >>= function
132128
| `Error (`Retry | `Suspended) ->
133-
debug "ToLVM.push got `Error; sleeping";
134129
Lwt_unix.sleep 5.
135130
>>= fun () ->
136131
push t item
@@ -216,7 +211,6 @@ module FreePool = struct
216211
>>= fun (pos, ts) ->
217212
let open FreeAllocation in
218213
( if ts = [] then begin
219-
debug "No free blocks, sleeping for 5s";
220214
Lwt_unix.sleep 5.
221215
end else return ()
222216
) >>= fun () ->

0 commit comments

Comments
 (0)