Date: Wed, 18 Jun 2003 21:10:56 -0700 (PDT) From: Don Lewis <truckman@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_syscalls.c Message-ID: <200306190410.h5J4AuoR064990@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
truckman 2003/06/18 21:10:56 PDT FreeBSD src repository Modified files: sys/kern vfs_syscalls.c Log: FILE_LOCK() uses a pool mutex, as does the vnode v_vnlock. Since pool mutexes are supposed to only be used as leaf mutexes, and what appear to be separate pool mutexes could be aliased together, it is bad idea for a thread to attempt to hold two pool mutexes at the same time. Slightly rearrange the code in kern_open() so that FILE_UNLOCK() is called before calling VOP_GETVOBJECT(), which will grab the v_vnlock mutex. Revision Changes Path 1.320 +5 -5 src/sys/kern/vfs_syscalls.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306190410.h5J4AuoR064990>