DragonFly commits List (threaded) for 2013-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Try harder to unmount a filesystem
commit fdbec6d31d4c1ab916476564bfcccfac093bfe0a
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Tue Feb 26 00:35:03 2013 -0800
kernel - Try harder to unmount a filesystem
* Use LK_TIMELOCK (5 seconds) instead of LK_NOWAIT when getting the mp
lockmgr lock for unforced unmounts.
* Remove the syncer vnode and issue VFS_SYNC prior to checking
mnt_refs instead of after the check. This appears to improve tmpfs's
chances of unmounting, though it is a bit unclear as to why.
* Wait up to 1 second for mnt_refs to drop to 1 before giving up.
* Improves Poudriere's chances of successfully unmounting a tmpfs
filesystem.
Summary of changes:
sys/kern/vfs_mount.c | 2 +-
sys/kern/vfs_syscalls.c | 47 ++++++++++++++++++++++++++++++++++-------------
2 files changed, 35 insertions(+), 14 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fdbec6d31d4c1ab916476564bfcccfac093bfe0a
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]