]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Allocate mounts from a uma zone that uses UMA_ZONE_NOFREE to prevent
authorjeff <jeff@FreeBSD.org>
Fri, 31 Mar 2006 03:49:51 +0000 (03:49 +0000)
committerjeff <jeff@FreeBSD.org>
Fri, 31 Mar 2006 03:49:51 +0000 (03:49 +0000)
commit1a43943ef60bbb86e45d755c6d1055f7513530a5
tree09c74a5ac848d059408d1f2e437cc419538c296c
parent316b7aa6fbc29db826244212a4eee2bc5d25b4a7
 - Allocate mounts from a uma zone that uses UMA_ZONE_NOFREE to prevent
   mount memory from being reclaimed.  This resolves a number of race
   conditions described in vfs_default.c and introduced with the
   VFS_LOCK_GIANT macros.
 - Let the mtx and lock remain valid after the mount structure has been
   freed by using init and fini calls.  Technically fini will never be
   called but is included for completeness.
 - Consistently use lockmgr directly rather than lockmgr to lock and
   vfs_unbusy to unlock.

Discussed with: tegge
Tested by: kris
Sponsored by: Isilon Systems, Inc.
sys/kern/vfs_mount.c