]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Use bigger I/O sizes for the memcache
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Thu, 7 Oct 2010 15:05:50 +0000 (11:05 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 25 Oct 2010 23:52:59 +0000 (16:52 -0700)
There doesn't seem to be a need to limit the rx message size when
using rx_WritevAlloc.  If there arent enough rx buffers to hold
the entire message at once, it will simply return less space.

Reviewed-on: http://gerrit.openafs.org/2943
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 6880d4a3a227f6c05332ef799123e0a05b190aa9)
Change-Id: I3d6ef65eeff2e59d662cd7f406bd5b8c1d3b11c6
Reviewed-on: http://gerrit.openafs.org/3061

src/afs/afs_fetchstore.c

index 5dcbc1a8bfd1a5e8078d62dae9ff937ed6cd8ccd..f34c96eb770e87e5a94f769959aec308256d279c 100644 (file)
@@ -93,9 +93,8 @@ rxfs_storeMemPrepare(void *r, afs_uint32 size, afs_uint32 *tlen)
     afs_int32 code;
     struct rxfs_storeVariables *v = (struct rxfs_storeVariables *) r;
 
-    *tlen = (size > AFS_LRALLOCSIZ ?  AFS_LRALLOCSIZ : size);
     RX_AFS_GUNLOCK();
-    code = rx_WritevAlloc(v->call, v->tiov, &v->tnio, RX_MAXIOVECS, *tlen);
+    code = rx_WritevAlloc(v->call, v->tiov, &v->tnio, RX_MAXIOVECS, size);
     RX_AFS_GLOCK();
     if (code <= 0) {
        code = rx_Error(v->call);