OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-3718-ge312407

Gerrit Code Review gerrit@openafs.org
Sat, 20 Apr 2013 08:25:34 -0700 (PDT)


The following commit has been merged in the master branch:
commit e31240732cbe449fedea5095037ac08d1d513fa9
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Wed Apr 17 18:04:58 2013 -0500

    LINUX: Sometimes let dentry_open handle refcounts
    
    When Linux changed dentry_open to use a 'path' argument, they also
    changed it so dentry_open handles incrementing the relevant ref
    counts. So now, sometimes we need to inc the dentry and vfsmount
    refcounts ourselves, and sometimes we need to leave them alone.
    
    To accommodate this, change afs_dentry_open to also handle refcounting
    itself, and 'get' the given dentry and vfsmount if necessary.
    
    Also note that currently, afs_linux_raw_open can call afs_dentry_open
    twice in the case of an error, but it does not dget(dp). This means
    that dp could be undercounted, since dentry_open on older kernels will
    dec the refcount on the given dentry in the case of an error. This
    change should also fix this so dp is not undercounted in that case.
    
    FIXES 131613
    
    Change-Id: I0e9deb7ce57633ff65b76d2444a0416ecbe329fd
    Reviewed-on: http://gerrit.openafs.org/9801
    Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
    Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>

 src/afs/LINUX/osi_compat.h |    3 ++-
 src/afs/LINUX/osi_file.c   |    9 ++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

-- 
OpenAFS Master Repository