Skip to content

Commit a899232

Browse files
committed
xenopsd: remove unused subtask parameter
Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent e8bde26 commit a899232

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

ocaml/xenopsd/lib/xenops_server.ml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ let with_tracing ~name ~task f =
18571857
warn "Failed to start tracing: %s" (Printexc.to_string e) ;
18581858
f ()
18591859

1860-
let rec perform_atomic ~progress_callback ?subtask:_ ?result (op : atomic)
1860+
let rec perform_atomic ~progress_callback ?result (op : atomic)
18611861
(t : Xenops_task.task_handle) : unit =
18621862
let module B = (val get_backend () : S) in
18631863
with_tracing ~name:(name_of_atomic op) ~task:t @@ fun () ->
@@ -2396,7 +2396,7 @@ let perform_atomics atomics t =
23962396
progress_callback progress (weight /. total_weight) t
23972397
in
23982398
debug "Performing: %s" (string_of_atomic x) ;
2399-
perform_atomic ~subtask:(string_of_atomic x) ~progress_callback x t ;
2399+
perform_atomic ~progress_callback x t ;
24002400
progress_callback 1. ;
24012401
progress +. (weight /. total_weight)
24022402
)
@@ -2530,8 +2530,7 @@ and trigger_cleanup_after_failure_atom op t =
25302530
| VM_import_metadata _ ->
25312531
()
25322532

2533-
and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
2534-
: unit =
2533+
and perform_exn ?result (op : operation) (t : Xenops_task.task_handle) : unit =
25352534
let module B = (val get_backend () : S) in
25362535
with_tracing ~name:(name_of_operation op) ~task:t @@ fun () ->
25372536
match op with
@@ -2658,9 +2657,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
26582657
(id, vm.Vm.memory_dynamic_min, vm.Vm.memory_dynamic_min)
26592658
in
26602659
let (_ : unit) =
2661-
perform_atomic ~subtask:(string_of_atomic atomic)
2662-
~progress_callback:(fun _ -> ())
2663-
atomic t
2660+
perform_atomic ~progress_callback:(fun _ -> ()) atomic t
26642661
in
26652662
(* Waiting here is not essential but adds a degree of safety and
26662663
reducess unnecessary memory copying. *)
@@ -3172,7 +3169,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
31723169
VUSB_DB.signal id
31733170
| Atomic op ->
31743171
let progress_callback = progress_callback 0. 1. t in
3175-
perform_atomic ~progress_callback ?subtask ?result op t
3172+
perform_atomic ~progress_callback ?result op t
31763173

31773174
and verify_power_state op =
31783175
let module B = (val get_backend () : S) in
@@ -3201,7 +3198,7 @@ and perform ?subtask ?result (op : operation) (t : Xenops_task.task_handle) :
32013198
unit =
32023199
let one op =
32033200
verify_power_state op ;
3204-
try perform_exn ?subtask ?result op t
3201+
try perform_exn ?result op t
32053202
with e ->
32063203
Backtrace.is_important e ;
32073204
info "Caught %s executing %s: triggering cleanup actions"

0 commit comments

Comments
 (0)