summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2003-06-19 04:10:56 +0000
committertruckman <truckman@FreeBSD.org>2003-06-19 04:10:56 +0000
commit84188f1f4fb2c8aadca4b5d65b5b74cd876b5f76 (patch)
tree1c31ed5dc4acec1005787bd89537d042f8322840 /libexec
parent82d03c66d5d36a6bc9db1738c71edd00b2d4e48c (diff)
downloadFreeBSD-src-84188f1f4fb2c8aadca4b5d65b5b74cd876b5f76.zip
FreeBSD-src-84188f1f4fb2c8aadca4b5d65b5b74cd876b5f76.tar.gz
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.
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud