Skip to content

Commit 77858de

Browse files
authored
Merge pull request #280 from robhoes/ca217921
CA-217921: VBD.unplug must destroy the datapath if a VBD was already shut down
2 parents 1c7567d + 43baf4f commit 77858de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

xc/xenops_server_xen.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,9 @@ module VBD = struct
20852085
)
20862086
(fun () ->
20872087
match domid, backend with
2088-
| Some x, Some (VDI _) -> Storage.dp_destroy task (Storage.id_of (string_of_int x) vbd.Vbd.id)
2088+
| Some x, None
2089+
| Some x, Some (VDI _)
2090+
-> Storage.dp_destroy task (Storage.id_of (string_of_int x) vbd.Vbd.id)
20892091
| _ -> ()
20902092
)
20912093
with

0 commit comments

Comments
 (0)