From 946fee039b82a0f9bbae0c13206dcd43285456c0 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 6 Jan 2012 06:33:22 -0500 Subject: [PATCH] afs: put back conn if not using in checkserver loop we get a conn, check it for eligibility, and if not, just abandon it. "oops" (cherry picked from commit 26fc0cda94c24a1c5f0bef109bca920456c25265) Change-Id: I8e4f762b5170f07d6abc3508e88f001ca147c3a7 Reviewed-on: http://gerrit.openafs.org/6521 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/afs/afs_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_server.c b/src/afs/afs_server.c index c9cc0cd145..3901fe55b6 100644 --- a/src/afs/afs_server.c +++ b/src/afs/afs_server.c @@ -640,7 +640,8 @@ afs_CheckServers(int adown, struct cell *acellp) conntimer[nconns]=0; } nconns++; - } + } else /* not holding, kill ref */ + afs_PutConn(tc, rxconn, SHARED_LOCK); } /* Outer loop over addrs */ AFS_GUNLOCK();