gvisor/runsc
Nicolas Lacasse 13b48f2e6a AsyncBarrier should be run after all defers in destroyContainerFS.
destroyContainerFS must wait for all async operations to finish before
returning. In an attempt to do this, we call fs.AsyncBarrier() at the end of
the function. However, there are many defer'd DecRefs which end up running
AFTER the AsyncBarrier() call.

This CL fixes this by calling fs.AsyncBarrier() in the first defer statement,
thus ensuring that it runs at the end of the function, after all other defers.

PiperOrigin-RevId: 220523545
Change-Id: I5e96ee9ea6d86eeab788ff964484c50ef7f64a2f
2018-11-07 13:55:36 -08:00
..
boot AsyncBarrier should be run after all defers in destroyContainerFS. 2018-11-07 13:55:36 -08:00
cgroup Order feature strings by block 2018-10-26 12:18:36 -07:00
cmd Use spec with clean paths for gofer 2018-11-01 17:52:11 -07:00
console Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
container Fix race between start and destroy 2018-11-05 21:29:37 -08:00
fsgofer Use spec with clean paths for gofer 2018-11-01 17:52:11 -07:00
sandbox Fix race between start and destroy 2018-11-05 21:29:37 -08:00
specutils Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
test Fix problem where crictl tests would signal both error and done channels 2018-11-06 16:18:13 -08:00
tools/dockercfg Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
BUILD runsc: Pass log and config files to sandbox process by FD. 2018-09-04 20:10:01 -07:00
main.go Add new log format that is compatible with Kubernetes 2018-11-01 17:44:58 -07:00