OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_74_1-65-gfc8ab5c

Gerrit Code Review gerrit@openafs.org
Mon, 3 May 2010 17:12:24 -0700 (PDT)


The following commit has been merged in the master branch:
commit fc8ab5cfd6592f9a9df24706a8f5dcc1e41f2b33
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Apr 29 17:47:15 2010 -0500

    Solaris: prevent AFS umount while busy
    
    Return EBUSY from unmount if someone still references stuff in AFS.
    This prevents kernel panics that can occur on shutdown if we umount
    while there is a file in AFS open. Normally a process can hold a file
    in AFS open, AFS is unmounted, and the file is closed, triggering our
    code which explodes if called after we're unmounted.
    
    This adds VFS_HOLD/VFS_RELE calls whenever we 'create' a vcache, or
    retire an old one, to keep track if anyone has an open reference to
    us.
    
    Change-Id: I95d8cf7e7e4d32a05bee97e06832a530b40af217
    Reviewed-on: http://gerrit.openafs.org/1880
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/afs/SOLARIS/osi_machdep.h  |   18 +++++++++++++++++-
 src/afs/SOLARIS/osi_vcache.c   |    7 +++++++
 src/afs/SOLARIS/osi_vfsops.c   |   14 ++++++++++++++
 src/afs/SOLARIS/osi_vnodeops.c |    5 +++++
 4 files changed, 43 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository