From: Derrick Brashear Date: Fri, 30 Nov 2007 19:21:04 +0000 (+0000) Subject: STABLE14-aix-pin-small-allocs-20071130 X-Git-Tag: openafs-stable-1_4_7pre1~135 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ba54860ab5a58a322c08b5e08121484b8da8aab6;p=packages%2Fo%2Fopenafs.git STABLE14-aix-pin-small-allocs-20071130 LICENSE IPL10 we assume the small alloc pool is pinned. maybe we should pin it. (cherry picked from commit f9fddc03ec2f36528953f5264263458bf730506e) --- diff --git a/src/afs/afs_osi_alloc.c b/src/afs/afs_osi_alloc.c index 539bc8bd9..348bc1e7f 100644 --- a/src/afs/afs_osi_alloc.c +++ b/src/afs/afs_osi_alloc.c @@ -120,7 +120,11 @@ osi_AllocSmallSpace(size_t size) if (!freeSmallList) { afs_stats_cmperf.SmallBlocksAlloced++; afs_stats_cmperf.SmallBlocksActive++; - return afs_osi_Alloc(AFS_SMALLOCSIZ); + tp = afs_osi_Alloc(AFS_SMALLOCSIZ); +#ifdef KERNEL_HAVE_PIN + pin((char *)tp, AFS_SMALLOCSIZ); +#endif + return (char *)tp; } afs_stats_cmperf.SmallBlocksActive++; MObtainWriteLock(&osi_fsplock, 327);