OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-989-gba9ae1e

Gerrit Code Review
Fri, 1 Apr 2011 22:42:55 -0700 (PDT)

The following commit has been merged in the master branch:
commit ba9ae1ed7c269d7c080b5ce99b3b4bb2fe0a2a6f
Author: Andrew Deason <>
Date:   Fri Apr 1 16:43:24 2011 -0500

    afs: Avoid memory leak on recursive write flock
    When a process requests an exclusive lock on a file on which it
    already holds an exclusive lock, we basically form a no-op. However,
    HandleFlock was allocating a new SimpleLocks and attaching it to
    avc->slocks, without freeing the old SimpleLocks structure.
    Since we don't need to do anything if we already hold an exclusive
    lock, just break out of the loop right away when we detect that
    scenario. Thus we avoid adding a new structure to avc->slocks, and we
    avoid a memory leak.
    Change-Id: I27c3df1d7807a0b74cba11d6e4a563df8232932a
    Tested-by: BuildBot <>
    Reviewed-by: Derrick Brashear <>

 src/afs/VNOPS/afs_vnop_flock.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

OpenAFS Master Repository