]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add an argument to nfsvno_getattr() in the experimental
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 24 Dec 2010 21:31:18 +0000 (21:31 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 24 Dec 2010 21:31:18 +0000 (21:31 +0000)
commit0cf42b622b37d57bf8605bd49fd64539431216eb
tree4c5398fc747079f8082afbff3e720d8edb2725c4
parenta852f40b7ac2625f068018d8027022f606584c08
Add an argument to nfsvno_getattr() in the experimental
NFS server, so that it can avoid calling VOP_ISLOCKED()
when the vnode is known to be locked. This will allow
LK_SHARED to be used for these cases, which happen to
be all the cases that can use LK_SHARED. This does not
fix any bug, but it reduces the number of calls to
VOP_ISLOCKED() and prepares the code so that it can be
switched to using LK_SHARED in a future patch.

Reviewed by: kib
MFC after: 2 weeks
sys/fs/nfs/nfs_var.h
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/nfsserver/nfs_nfsdserv.c