From a2877368045947ca28c29283ef03f1510d764d4d Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 11 Sep 2012 14:23:02 -0500 Subject: [PATCH] rx: Skip rxi_CheckPeerDead if we are DALLY DALLY connections don't need to be marked dead, so just skip the whole function if we are DALLY. Change-Id: I8a70c93edb54be28cfda499bc8ce3b7b5b7db600 Reviewed-on: http://gerrit.openafs.org/8120 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/rx/rx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index a01b96929e..52de6be8ff 100644 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -5961,7 +5961,13 @@ static int rxi_CheckPeerDead(struct rx_call *call) { #ifdef AFS_RXERRQ_ENV - int peererrs = rx_atomic_read(&call->conn->peer->neterrs); + int peererrs; + + if (call->state == RX_STATE_DALLY) { + return 0; + } + + peererrs = rx_atomic_read(&call->conn->peer->neterrs); if (call->neterr_gen < peererrs) { /* we have received network errors since this call started; kill * the call */