cvs commit: src/sys/kern vfs_syscalls.c
Don Lewis
truckman at FreeBSD.org
Wed Jun 18 21:10:58 PDT 2003
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
More information about the cvs-src
mailing list