OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1193-g04087af
Gerrit Code Review
gerrit@openafs.org
Sat, 21 May 2011 06:50:58 -0700 (PDT)
The following commit has been merged in the master branch:
commit 04087af8494b90f664ac5f274d5db4c12063f238
Author: Derrick Brashear <shadow@dementia.org>
Date: Fri May 20 14:13:01 2011 -0400
macos: bulkstat redux
simplify the logic which can require sleeps in various vcache
resolution paths. instead of the two-pass system we had before,
just guess using the even/odd hack what type a vnode will be.
if a vnode turns out to be a link and thus we are wrong, we
do a fixup later. other callers who "race" with bulkstat
(which is a supported feature, otherwise you'd have to block
callbacks) will also call through a fixup to get the correct
backing vnode type. this is necessary as the KPI doesn't
let us change the type of a vnode after it's been created.
side effect: eliminate many of the ugly cases where we had been
sleeping waiting for a vnode to be finalized even before bulkstat.
Change-Id: Ib888fa5577d48354725ea72305765e4341bc2366
Reviewed-on: http://gerrit.openafs.org/4677
Tested-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/DARWIN/osi_inode.c | 6 +-
src/afs/DARWIN/osi_prototypes.h | 2 +-
src/afs/DARWIN/osi_vcache.c | 6 ++-
src/afs/DARWIN/osi_vfsops.c | 6 +-
src/afs/DARWIN/osi_vnodeops.c | 38 +++++++++-----
src/afs/VNOPS/afs_vnop_lookup.c | 39 ++++++++++-----
src/afs/afs.h | 2 -
src/afs/afs_callback.c | 26 ++--------
src/afs/afs_pioctl.c | 13 +----
src/afs/afs_vcache.c | 103 +++++++++++++--------------------------
10 files changed, 105 insertions(+), 136 deletions(-)
--
OpenAFS Master Repository