Date: Thu, 11 Nov 2004 21:30:53 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/nfsserver nfs_serv.c Message-ID: <200411112130.iABLUrZe044946@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004-11-11 21:30:53 UTC FreeBSD src repository Modified files: sys/nfsserver nfs_serv.c Log: Correct a bug in nfsrv_create() where a call to nfsrv_access() might be made holding the NFS server mutex. To clean this up, introduce a version of the function, nfsrv_access_withgiant(), that expects the NFS server mutex to already have been dropped and Giant acquired. Wrap nfsrv_access() around this. This permits callers to more efficiently check access if they're in a code block performing VFS operations, and can be substitited for the nfsrv_access() call that triggered this bug. PR: 73807, 73208 MFC after: 1 week Revision Changes Path 1.151 +52 -38 src/sys/nfsserver/nfs_serv.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411112130.iABLUrZe044946>