OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_72-44-g380bd77

Gerrit Code Review gerrit@openafs.org
Mon, 22 Feb 2010 12:01:26 -0800 (PST)


The following commit has been merged in the master branch:
commit 380bd77c328d8d83a007cd97f6564fcb5b990a73
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Tue Feb 16 11:08:38 2010 -0600

    h_TossStuff_r: make sure host does not go away
    
    When h_TossStuff_r h_NBLock_r's a host, it is not only possible for
    someone else to grab a hold on the host, but in theory it's also
    possible for someone to hold a host, release it, and for the host to be
    deleted again (assuming some callers hold HOSTDELETED hosts, which they
    should not be doing).
    
    To make this safety check a bit more robust, hold the host in
    h_TossStuff_r before h_NBLock_r'ing, to ensure that it does not go away
    while we're waiting for H_LOCK.
    
    Change-Id: I018a611143d6dccba79cc627803cce74aa830c77
    Reviewed-on: http://gerrit.openafs.org/1330
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>

 src/viced/host.c |   11 ++++++++++-
 src/viced/host.h |    7 ++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

-- 
OpenAFS Master Repository