]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE12-afs-analyze-avoid-potential-loop-20030423
authorDerrick Brashear <shadow@dementia.org>
Mon, 12 May 2003 16:16:24 +0000 (16:16 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 12 May 2003 16:16:24 +0000 (16:16 +0000)
commitd2b74a759dce79eb10b19c929cc6fb291f8c090f
tree709cbff6d30a967859cede79666f71365659322f
parent57e745d36a051fcc16172f9243a2560b1388d970
STABLE12-afs-analyze-avoid-potential-loop-20030423

avoid potentially looping forever in e.g. afs_FetchStatus because
we exit afs_Analyze too early to increment busyCount, and despite having
areq->busyCount non-zero we have servers still not_busy which are already down
that we'll never talk to again. that combined with no conn means we never
touch most of afs_Analyze, exiting early with shouldRetry set.

incrementing busyCount whenever we exit with shouldRetry set should
ensure we can never end up looping forever.

(cherry picked from commit 42a1981fff5c9b3f4855e4f9200fb6a9de53642b)
src/afs/afs_analyze.c