From: Jeffrey Altman Date: Mon, 10 Sep 2007 05:55:01 +0000 (+0000) Subject: DEVEL15-windows-callbacks-20070909 X-Git-Tag: openafs-devel-1_5_25~25 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=08cfdbf49c0d712a28b8ce912e3684f43d59a266;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-callbacks-20070909 when suspending only clear callbacks for servers that are in an up state. if they were in a down state, then we couldn't send the clear callbacks message but more importantly, we need to leave the callback info current because the callbacks should not be cleared until the server is once again reachable. (cherry picked from commit 7a6e406b803115176b9d8d2c235f5c729631103f) --- diff --git a/src/WINNT/afsd/cm_scache.c b/src/WINNT/afsd/cm_scache.c index cf93f282b..06e4b2017 100644 --- a/src/WINNT/afsd/cm_scache.c +++ b/src/WINNT/afsd/cm_scache.c @@ -480,7 +480,8 @@ cm_SuspendSCache(void) lock_ObtainWrite(&cm_scacheLock); for ( scp = cm_data.allSCachesp; scp; scp = scp->allNextp ) { - if (scp->cbServerp) { + if (scp->cbServerp && + !(scp->cbServerp->flags & CM_SERVERFLAG_DOWN)) { cm_PutServer(scp->cbServerp); scp->cbServerp = NULL; }