From e876d4736cec7a72c621f94d97df99a81f04693a Mon Sep 17 00:00:00 2001 From: rmacklem Date: Wed, 1 Jan 2014 02:49:45 +0000 Subject: MFC: r259854 The NFSv4 server would call VOP_SETATTR() with a shared locked vnode when a Getattr for a file is done by a client other than the one that holds the file's delegation. This would only happen when delegations are enabled and the problem is fixed by this patch. --- sys/fs/nfs/nfs_var.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/nfs') diff --git a/sys/fs/nfs/nfs_var.h b/sys/fs/nfs/nfs_var.h index f6a974e..7fbabaa 100644 --- a/sys/fs/nfs/nfs_var.h +++ b/sys/fs/nfs/nfs_var.h @@ -613,7 +613,7 @@ void nfsvno_open(struct nfsrv_descript *, struct nameidata *, nfsquad_t, nfsv4stateid_t *, struct nfsstate *, int *, struct nfsvattr *, int32_t *, int, NFSACL_T *, nfsattrbit_t *, struct ucred *, NFSPROC_T *, struct nfsexstuff *, vnode_t *); -void nfsvno_updfilerev(vnode_t, struct nfsvattr *, struct ucred *, +int nfsvno_updfilerev(vnode_t, struct nfsvattr *, struct ucred *, NFSPROC_T *); int nfsvno_fillattr(struct nfsrv_descript *, struct mount *, vnode_t, struct nfsvattr *, fhandle_t *, int, nfsattrbit_t *, -- cgit v1.1