diff --git a/src/vol/vnode.c b/src/vol/vnode.c index 3c10baa0b8..532fe8352b 100644 --- a/src/vol/vnode.c +++ b/src/vol/vnode.c @@ -669,9 +669,6 @@ VAllocVnode_r(Error * ec, Volume * vp, VnodeType type) /* This won't block */ VnLock(vnp, WRITE_LOCK, VOL_LOCK_HELD, WILL_NOT_DEADLOCK); } else { - /* other users present; follow locking hierarchy */ - VnLock(vnp, WRITE_LOCK, VOL_LOCK_HELD, MIGHT_DEADLOCK); - #ifdef AFS_DEMAND_ATTACH_FS /* * DAFS: @@ -689,6 +686,9 @@ VAllocVnode_r(Error * ec, Volume * vp, VnodeType type) } #endif + /* other users present; follow locking hierarchy */ + VnLock(vnp, WRITE_LOCK, VOL_LOCK_HELD, MIGHT_DEADLOCK); + /* * verify state of the world hasn't changed *