OpenAFS Master Repository branch, openafs-devel-1_7_x, updated. openafs-devel-1_7_1-44-g8cbd52a

Gerrit Code Review gerrit@openafs.org
Sat, 12 Nov 2011 15:47:06 -0800 (PST)


The following commit has been merged in the openafs-devel-1_7_x branch:
commit a13b52888e2c6135bb8cbc329aec9d808fd6388a
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Sep 29 14:49:53 2011 -0500

    DAFS: Do not serialize state for invalid hosts
    
    When we serialize host information for DAFS during shutdown, we have
    no guarantee that the host is in a valid state when we look at it.
    This can result in a host being saved to disk when we are waiting for
    the host to respond to an RPC, and so the information about the host
    is invalid. For example, we can save a host that has the
    HWHO_INPROGRESS flag set, and when it is restored later, this can
    cause odd behavior since the flag is set but no thread is actually
    waiting for the host to respond.
    
    So instead, during state serialization, try to determine if a host may
    be in an invalid state, and simply skip the host if it may.
    
    Change-Id: I755640ea4ce607245ae98cc7455472ef781271e7
    Reviewed-on: http://gerrit.openafs.org/5528
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Derrick Brashear <shadow@dementix.org>
    (cherry-picked from 5c6bd04211d587efde4b0915a62273aafb2d306b)
    Reviewed-on: http://gerrit.openafs.org/5873
    Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
    Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>

 src/tviced/serialize_state.c |   14 +++++++-------
 src/viced/host.c             |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 7 deletions(-)

-- 
OpenAFS Master Repository