gvisor/runsc/boot
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
..
filter kvm: use private futexes. 2018-10-30 22:46:42 -07:00
BUILD Track paths and provide a rename hook. 2018-10-23 00:20:15 -07:00
compat.go Add new log format that is compatible with Kubernetes 2018-11-01 17:44:58 -07:00
compat_amd64.go Add more unimplemented syscall events 2018-10-20 11:14:23 -07:00
compat_test.go Add more unimplemented syscall events 2018-10-20 11:14:23 -07:00
config.go Add new log format that is compatible with Kubernetes 2018-11-01 17:44:58 -07:00
controller.go Add more logging to controller.go 2018-11-07 13:33:19 -08:00
debug.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
events.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
fds.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
fs.go AsyncBarrier should be run after all defers in destroyContainerFS. 2018-11-07 13:55:36 -08:00
limits.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
loader.go Fix race between start and destroy 2018-11-05 21:29:37 -08:00
loader_test.go Use spec with clean paths for gofer 2018-11-01 17:52:11 -07:00
network.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
strace.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00