]> git.michaelhowe.org Git - packages/o/openafs.git/commit
FBSD: band-aid vnode locking in lookup
authorBen Kaduk <kaduk@mit.edu>
Sun, 24 Oct 2010 04:29:07 +0000 (00:29 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 10 Jan 2011 04:28:26 +0000 (20:28 -0800)
commit0f48add85f29de63eeaf1d6342f675131dc4ab79
tree61ce149f7e1b2e4f3bf62383211d72217ab20a04
parent72e2b1119136315a5845c7af00aa73456985d6fa
FBSD: band-aid vnode locking in lookup

The lock order requires that we acquire vnode locks from the root
towards the leaf.  When looking up "..", this requires that we
unlock the directory before locking the child, otherwise we
are susceptible to deadlock.
This is only a band-aid, as afs_vop_lookup should be rewritten.

Change-Id: I594f31ba05c3847e5d83d89748266d24547bf97b
Reviewed-on: http://gerrit.openafs.org/3035
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-on: http://gerrit.openafs.org/3632
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/FBSD/osi_vnodeops.c