]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-blacklistonce-use-only-initd-vrequest-20081020
authorMarc Dionne <marc.c.dionne@gmail.com>
Mon, 20 Oct 2008 13:01:59 +0000 (13:01 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 20 Oct 2008 13:01:59 +0000 (13:01 +0000)
LICENSE IPL10

avoid using an un "initd" vrequest for server blacklisting

(cherry picked from commit 7366eb3d46506b1fdda5ece843abd96aa76b7936)

src/afs/afs_conn.c

index bae3f01354ca347d4b23ab0126df5e8c72684b87..fc13a6e060d3a86892ecec8091df95f70007ae87 100644 (file)
@@ -84,7 +84,8 @@ afs_Conn(register struct VenusFid *afid, register struct vrequest *areq,
     /* First is always lowest rank, if it's up */
     if ((tv->status[0] == not_busy) && tv->serverHost[0]
        && !(tv->serverHost[0]->addr->sa_flags & SRVR_ISDOWN) &&
-       !(((areq->idleError > 0) || (areq->tokenError > 0))
+       !((areq->initd == 1) &&
+         ((areq->idleError > 0) || (areq->tokenError > 0))
          && (areq->skipserver[0] == 1)))
        lowp = tv->serverHost[0]->addr;