Closed lindig closed 6 years ago
Would this unplug/destroy need the same treatment with local sessions? https://github.com/xapi-project/xapi-nbd/blob/a22a42f5439888673e2d61feb959b7db43b3e45b/src/cleanup.ml#L119 Also just noticed a potential problem with two uses of Lwt_main.run concurrently unrelated to this PR: https://github.com/xapi-project/xapi-nbd/issues/36
To avoid races during shutdown, cleanup operations should use local sessions rather than the client session.
Signed-off-by: Christian Lindig christian.lindig@citrix.com