@@ -1857,7 +1857,7 @@ let with_tracing ~name ~task f =
1857
1857
warn " Failed to start tracing: %s" (Printexc. to_string e) ;
1858
1858
f ()
1859
1859
1860
- let rec perform_atomic ~progress_callback ?subtask : _ ? result (op : atomic )
1860
+ let rec perform_atomic ~progress_callback ?result (op : atomic )
1861
1861
(t : Xenops_task.task_handle ) : unit =
1862
1862
let module B = (val get_backend () : S ) in
1863
1863
with_tracing ~name: (name_of_atomic op) ~task: t @@ fun () ->
@@ -2396,7 +2396,7 @@ let perform_atomics atomics t =
2396
2396
progress_callback progress (weight /. total_weight) t
2397
2397
in
2398
2398
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 ;
2400
2400
progress_callback 1. ;
2401
2401
progress +. (weight /. total_weight)
2402
2402
)
@@ -2530,8 +2530,7 @@ and trigger_cleanup_after_failure_atom op t =
2530
2530
| VM_import_metadata _ ->
2531
2531
()
2532
2532
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 =
2535
2534
let module B = (val get_backend () : S ) in
2536
2535
with_tracing ~name: (name_of_operation op) ~task: t @@ fun () ->
2537
2536
match op with
@@ -2658,9 +2657,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
2658
2657
(id, vm.Vm. memory_dynamic_min, vm.Vm. memory_dynamic_min)
2659
2658
in
2660
2659
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
2664
2661
in
2665
2662
(* Waiting here is not essential but adds a degree of safety and
2666
2663
reducess unnecessary memory copying. *)
@@ -3172,7 +3169,7 @@ and perform_exn ?subtask ?result (op : operation) (t : Xenops_task.task_handle)
3172
3169
VUSB_DB. signal id
3173
3170
| Atomic op ->
3174
3171
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
3176
3173
3177
3174
and verify_power_state op =
3178
3175
let module B = (val get_backend () : S ) in
@@ -3201,7 +3198,7 @@ and perform ?subtask ?result (op : operation) (t : Xenops_task.task_handle) :
3201
3198
unit =
3202
3199
let one op =
3203
3200
verify_power_state op ;
3204
- try perform_exn ?subtask ? result op t
3201
+ try perform_exn ?result op t
3205
3202
with e ->
3206
3203
Backtrace. is_important e ;
3207
3204
info " Caught %s executing %s: triggering cleanup actions"
0 commit comments