OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-256-gb1082ff

Gerrit Code Review gerrit@openafs.org
Tue, 15 Jul 2025 21:25:58 -0400


The following commit has been merged in the master branch:
commit 2c3462a4d33077be2612ea3d0f3cddbfc40c272e
Author: Mark Vitale <mvitale@sinenomine.net>
Date:   Mon Jul 26 01:13:10 2021 -0400

    afs: AFS_ASSERT_GLOCK earlier in kernel lock functions
    
    Afs_Lock_Obtain, Afs_Lock_ReleaseR, and Afs_Lock_ReleaseW all call
    AFS_ASSERT_GLOCK.  However, these asserts are only reached by callers
    under certain circumstances:
     - Obtain*Lock calls that block
     - Release*Lock calls that have waiters
    
    Move the AFS_ASSERT_GLOCK calls so they are asserted as early as
    possible for each lock function.
    
    While here, add AFS_ASSERT_GLOCK to other kernel lock functions that
    lack it:
     - LockWaiters
     - CheckLock
     - WriteLocked
    
    Change-Id: Ifb057ee76be3364958ab45543b6b63ac3a548571
    Reviewed-on: https://gerrit.openafs.org/14718
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>

 src/afs/afs_lock.c  |  4 ----
 src/afs/lock.h      | 16 ++++++++++++++++
 src/rx/rx_kcommon.h |  2 +-
 3 files changed, 17 insertions(+), 5 deletions(-)

-- 
OpenAFS Master Repository