OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0pre5-19-g45f4443

Gerrit Code Review
Sun, 22 May 2011 08:31:40 -0700 (PDT)

The following commit has been merged in the openafs-stable-1_6_x branch:
commit 45f444376cf446a0e21795ea627413666f634011
Author: Derrick Brashear <>
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.
    Tested-by: Derrick Brashear <>
    Tested-by: BuildBot <>
    Reviewed-by: Derrick Brashear <>
    (cherry picked from commit 04087af8494b90f664ac5f274d5db4c12063f238)
    Change-Id: I7a9c3e4f94496aa1a553ad54f6d43a0d0e6ccd5a
    Tested-by: BuildBot <>
    Reviewed-by: Derrick Brashear <>

 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