We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5391d3 commit b708663Copy full SHA for b708663
lib/xenops_server.ml
@@ -912,8 +912,11 @@ let perform_atomic ~progress_callback ?subtask (op: atomic) (t: Xenops_task.t) :
912
finally
913
(fun () ->
914
let vif = VIF_DB.read_exn id in
915
- B.VIF.set_locking_mode t (VIF_DB.vm_of id) vif mode;
916
- VIF_DB.write id {vif with Vif.locking_mode = mode}
+ (* Nb, this VIF_DB write needs to come before the call to set_locking_mode
+ as the scripts will read from the disk! *)
917
+ VIF_DB.write id {vif with Vif.locking_mode = mode};
918
+ B.VIF.set_locking_mode t (VIF_DB.vm_of id) vif mode
919
+
920
) (fun () -> VIF_DB.signal id)
921
| VIF_set_active (id, b) ->
922
debug "VIF.set_active %s %b" (VIF_DB.string_of_id id) b;
0 commit comments