OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1723-g5c6bd04

Gerrit Code Review gerrit@openafs.org
Fri, 30 Sep 2011 16:57:31 -0700 (PDT)


The following commit has been merged in the master branch:
commit 5c6bd04211d587efde4b0915a62273aafb2d306b
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>

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

-- 
OpenAFS Master Repository