Date: Thu, 15 May 2003 14:12:08 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/nfsclient nfs_bio.c nfs_vnops.c Message-ID: <200305152112.h4FLC8MF072680@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2003/05/15 14:12:08 PDT
FreeBSD src repository
Modified files:
sys/nfsclient nfs_bio.c nfs_vnops.c
Log:
This change grabs the vnode lock for NFS client vnodes when calling
VOP_SETATTR() or VOP_GETATTR(); without these locks (a) VFS_DEBUG_LOCKS
will panic, and (b) it may be possible to corrupt entries in the cached
vnode attributes in the nfsnode, since nfsnode attribute cache data is
also protected by the vnode lock.
Approved by: re (jhb)
Pointed out by: VFS_DEBUG_LOCKS
Revision Changes Path
1.118 +3 -1 src/sys/nfsclient/nfs_bio.c
1.205 +4 -0 src/sys/nfsclient/nfs_vnops.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305152112.h4FLC8MF072680>
