diff options
author | John Dyson <dyson@FreeBSD.org> | 1997-12-29 00:25:11 +0000 |
---|---|---|
committer | John Dyson <dyson@FreeBSD.org> | 1997-12-29 00:25:11 +0000 |
commit | 2be70f79f6dcc03377819b327700531ce5455896 (patch) | |
tree | e16c806fdb19ecadb7a3d2c2fd2ffb344ef606f3 /sys/kern/vfs_vnops.c | |
parent | d0cc10a88b4696dafc997d9a2acef1ef25ab1def (diff) | |
download | src-2be70f79f6dcc03377819b327700531ce5455896.tar.gz src-2be70f79f6dcc03377819b327700531ce5455896.zip |
Lots of improvements, including restructring the caching and management
of vnodes and objects. There are some metadata performance improvements
that come along with this. There are also a few prototypes added when
the need is noticed. Changes include:
1) Cleaning up vref, vget.
2) Removal of the object cache.
3) Nuke vnode_pager_uncache and friends, because they aren't needed anymore.
4) Correct some missing LK_RETRY's in vn_lock.
5) Correct the page range in the code for msync.
Be gentle, and please give me feedback asap.
Notes
Notes:
svn path=/head/; revision=32071
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 58dfad550cc3..460bdd7b67c4 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_vnops.c 8.2 (Berkeley) 1/21/94 - * $Id: vfs_vnops.c,v 1.42 1997/11/29 01:33:10 dyson Exp $ + * $Id: vfs_vnops.c,v 1.43 1997/12/06 04:11:11 sef Exp $ */ #include <sys/param.h> @@ -510,7 +510,9 @@ vn_lock(vp, flags, p) if (vp->v_flag & VXLOCK) { vp->v_flag |= VXWANT; simple_unlock(&vp->v_interlock); - tsleep((caddr_t)vp, PINOD, "vn_lock", 0); + if (tsleep((caddr_t)vp, PINOD, "vn_lock", 100*5)) { + vprint("vn_lock:", vp); + } error = ENOENT; } else { error = VOP_LOCK(vp, flags | LK_NOPAUSE | LK_INTERLOCK, p); |