OpenAFS Master Repository branch, openafs-stable-1_4_x, updated. openafs-stable-1_4_12-140-g654b5c5

Gerrit Code Review gerrit@openafs.org
Tue, 14 Aug 2012 06:20:50 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_4_x branch:
commit 654b5c5509505acb54780e0e33148e67024679b1
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Fri Apr 6 14:56:07 2012 -0500

    LINUX: Do not lookup immediately recursive mtpts
    
    On Linux, having a mountpoint in a volume root that points to the same
    volume can cause serious problems. By 'immediately recursive', I mean
    a situation like the following:
    
    fs mkm mtpt vol
    fs mkm mtpt/mtpt vol
    
    If there are multiple dentry aliases for the directory (which is
    possible if the directory is a mountpoint), an 'rmdir' on the
    recursive mountpoint can cause the client to deadlock. Since the
    'rmdir' code path in Linux locks the parent directory inode to perform
    the rmdir, and locks the child directory inode after performing a
    couple of sanity checks. For an immediately recursive mountpoint,
    these two inodes are the same, and so we will deadlock.
    
    Reviewed-on: http://gerrit.openafs.org/7742
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    (cherry picked from commit d785abd5ec9302bdc1b3c33368246e573e0cd65d)
    
    Change-Id: I7112a6b753a0a1b227c066a497a2e4729d40056f
    Reviewed-on: http://gerrit.openafs.org/7954
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>

 src/afs/LINUX/osi_vnodeops.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository