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
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
..
aufs Gofmt imports 2014-03-17 11:41:28 -07:00
btrfs Move graphdrivers into runtime top level pkg 2014-03-17 11:40:12 -07:00
devmapper devicemapper: Better/faster shutdown 2014-03-20 17:38:35 +01:00
vfs 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