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>
Tue, 26 Oct 2010 04:41:00 +0000 (21:41 -0700)
commit2f6be821ffeba607d4305586ad2c7ec4ba2b180c
treede91f85c4d6f7109475b8effe96f13db8970657f
parent5bf95621ae2ffff6e847c12e16f31db534fd7d0b
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: Ie99a677978370488f8edc7128014b89abc00a56c
Reviewed-on: http://gerrit.openafs.org/3035
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/FBSD/osi_vnodeops.c