cvs commit: src/sys/kern vfs_cache.c src/sys/nfsclient nfs_vnops.c
John Baldwin
jhb at FreeBSD.org
Wed Sep 24 18:52:46 UTC 2008
jhb 2008-09-24 18:51:33 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_cache.c
sys/nfsclient nfs_vnops.c
Log:
SVN rev 183330 on 2008-09-24 18:51:33Z by jhb
Part 1 of making shared lookups more resilient with respect to forced
unmounts. When we upgrade a vnode lock from shared to exclusive during
a name cache lookup, fail the lookup with EBADF if the vnode is invalidated
while we are waiting for the exclusive lock.
Also, for correctness (though I'm not sure it can occur in practice),
downgrade an exclusively locked vnode if it should be share locked.
Tested by: pho
Revision Changes Path
1.126 +18 -8 src/sys/kern/vfs_cache.c
1.290 +4 -1 src/sys/nfsclient/nfs_vnops.c
More information about the cvs-src
mailing list