1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runtime/graphdriver/devmapper
Alexander Larsson a9fa1a13c3 devicemapper: Better/faster shutdown
Right now shutdown is looping over *all* devicemapper
devices and actively deactivating them, this is pretty
slow if you have a lot of non-active containers. We
instead only deactivate the devices that are mounted.

We also do the shutdown unmount using MNT_DETACH which
forces the unmount in the global namespace, even if it
is busy because of some container having it mounted.
This means the device will be freed when that container
exits.

Also, we move the call to waitClose to deactivateDevice
because all callers of any of them call both anyway.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-03-20 17:38:35 +01:00
..
attach_loopback.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
deviceset.go devicemapper: Better/faster shutdown 2014-03-20 17:38:35 +01:00
devmapper.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
devmapper_doc.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
devmapper_log.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
devmapper_test.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
devmapper_wrapper.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
driver.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
driver_test.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
ioctl.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
mount.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
sys.go Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00