OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_9-116-g94f1d49

Gerrit Code Review
Thu, 7 Aug 2014 05:25:12 -0400

The following commit has been merged in the openafs-stable-1_6_x branch:
commit 94f1d49af07a2f20b43bdc4e172e1b0aabc1b263
Author: Marc Dionne <>
Date:   Tue Apr 29 12:48:03 2014 -0400

    libafs: Speed up afs_CheckTokenCache
    On systems with a large number of PAGs and files in use, the
    periodic daemon job that checks for expired credentials and
    cleans up the axs cache can run for a very long time.  This
    can lead to kernel soft lockups and eventually hang processes
    and file access because of unavailable locks.
    Rework the scanning logic in afs_CheckTokenCache to make the
    scanning more efficient in most real world cases.  On a test
    system accessing ~4000 files from processes in 1000 PAGs, this
    has been observed to reduce the runtime of afs_CheckTokenCache
    from a problematic ~70s down to about 0.7s.
    Additionally, this changes the conditions in which an axscache is
    discarded. uid+cell (rather than just uid) must now match, and
    if no matching unixuser is found, it will also be discarded.
    Adapted from code from Jeffrey Altman who provided the original
    loop algorithm and code.
    Tested-by: BuildBot <>
    Reviewed-by: Chas Williams - CONTRACTOR <>
    Reviewed-by: D Brashear <>
    (cherry picked from commit de74227d9c925206cd6d46496ec4682569d3105b)
    Change-Id: I72e501cf1cb3e312d17a518666d2d638f1d52ead
    Tested-by: BuildBot <>
    Reviewed-by: Chas Williams - CONTRACTOR <>
    Reviewed-by: Benjamin Kaduk <>
    Reviewed-by: D Brashear <>
    Reviewed-by: Andrew Deason <>
    Reviewed-by: Stephan Wiesand <>

 src/afs/afs_user.c |   80 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 62 insertions(+), 18 deletions(-)

OpenAFS Master Repository