OpenAFS Master Repository branch, openafs-stable-1_4_x, updated. openafs-stable-1_4_12pre3-6-g70798bd

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


The following commit has been merged in the openafs-stable-1_4_x branch:
commit 70798bd662cd17ea9782bf970dab988bab2002d2
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Fri Feb 12 17:44:31 2010 -0600

    Check for HOSTDELETED before h_Hold_r
    
    A few places h_Hold_r a host and later drop and reacquire H_LOCK without
    checking if the hostFlags contains HOSTDELETED. This can cause a race
    with h_TossStuff_r where we later reference a host that is about to be
    freed or already has been freed.
    
    Add checks for HOSTDELETED in these places, and skip over the deleted
    hosts.
    
    FIXES 126454
    
    Reviewed-on: http://gerrit.openafs.org/1305
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>
    (cherry picked from commit b8c3c6add90ea3face9a16ff04a1024be3d8f32d)
    
    Change-Id: I9e67465b3dac6db8626fee03823ed63a680beaad
    Reviewed-on: http://gerrit.openafs.org/1366
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>

 src/viced/callback.c |   37 +++++++++++++++++++++---------
 src/viced/host.c     |   61 ++++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 80 insertions(+), 18 deletions(-)

-- 
OpenAFS Master Repository