DragonFly commits List (threaded) for 2012-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Fix mount refs interactions and umount races
commit 6fa06591a194a4b88811a5049f88fefcc060fee5
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Thu Mar 22 21:37:25 2012 -0700
kernel - Fix mount refs interactions and umount races
* It is possible for a umount to race other operations on active mount
point, causing one or the other to deadlock.
* vfs_busy()/vfs_unbusy() now incr/decr mp->mnt_refs.
* cache_findmount() now increments mp->mnt_refs, and add a new API
function cache_dropmount() which decrements it.
Summary of changes:
sys/kern/vfs_cache.c | 7 +++++++
sys/kern/vfs_mount.c | 10 +++++++++-
sys/kern/vfs_nlookup.c | 5 ++++-
sys/kern/vfs_syscalls.c | 8 ++++++--
sys/sys/namecache.h | 1 +
5 files changed, 27 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6fa06591a194a4b88811a5049f88fefcc060fee5
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]