aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/du/du.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-11-04 19:04:01 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-11-04 19:04:01 +0000
commit2ff47c5f181b6ccf2ad64d3552687e28781eab5a (patch)
treeb47a8cae4ebd0444298548735180256fabe8a0d6 /usr.bin/du/du.c
parent2ef42c06d66bc2811c37c7041142338efcab4b73 (diff)
downloadsrc-2ff47c5f181b6ccf2ad64d3552687e28781eab5a.tar.gz
src-2ff47c5f181b6ccf2ad64d3552687e28781eab5a.zip
Remove unnecessary locking around vn_fullpath(). The vnode lock for the
vnode in question does not need to be held. All the data structures used during the name lookup are protected by the global name cache lock. Instead, the caller merely needs to ensure a reference is held on the vnode (such as vhold()) to keep it from being freed. In the case of procfs' <pid>/file entry, grab the process lock while we gain a new reference (via vhold()) on p_textvp to fully close races with execve(2). For the kern.proc.vmmap sysctl handler, use a shared vnode lock around the call to VOP_GETATTR() rather than an exclusive lock. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=184652
Diffstat (limited to 'usr.bin/du/du.c')
0 files changed, 0 insertions, 0 deletions