]> git.michaelhowe.org Git - packages/o/openafs.git/commit
LINUX: Avoid unnecessary afs_ShakeLooseVCaches
authorAndrew Deason <adeason@sinenomine.net>
Tue, 21 Dec 2010 15:31:39 +0000 (10:31 -0500)
committerDerrick Brashear <shadow@dementia.org>
Wed, 22 Dec 2010 17:23:01 +0000 (09:23 -0800)
commitd8b59ab659aacdd2dd878cb521ba4f095096c165
tree42ecd35340ead555a3920cb1164c95f935daae85
parent87a98b3109d389eac0e4a9bb4862ca9e320e21fc
LINUX: Avoid unnecessary afs_ShakeLooseVCaches

Before some of the NewVCache refactoring, we only called
afs_ShakeLooseVCaches when afs_vcount was over (or equal to)
afs_maxvcount. Do this again, so we only try to shake loose vcaches
when we need more vcaches. Otherwise, we will call
afs_ShakeLooseVCaches every single time we want a new vcache when
dynamic vcaches are disabled (such as 2.4 Linux), and we log a warning
when we can't free any (which is likely when there are only 1 or 2
vcaches in use).

FIXES 128756

Reviewed-on: http://gerrit.openafs.org/3569
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit fa4b1f3aeb33c28b2d8e2724542d1696fcc87773)

Change-Id: I9a108b38fa30e1a45f07c5d5d7d680d2b7d0257f
Reviewed-on: http://gerrit.openafs.org/3578
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_vcache.c