diff options
author | truckman <truckman@FreeBSD.org> | 2003-06-19 04:10:56 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2003-06-19 04:10:56 +0000 |
commit | 84188f1f4fb2c8aadca4b5d65b5b74cd876b5f76 (patch) | |
tree | 1c31ed5dc4acec1005787bd89537d042f8322840 /libexec/rtld-elf/rtld.1 | |
parent | 82d03c66d5d36a6bc9db1738c71edd00b2d4e48c (diff) | |
download | FreeBSD-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/rtld-elf/rtld.1')
0 files changed, 0 insertions, 0 deletions