Messages in this thread | | | Date | Wed, 18 Jun 2003 21:26:24 -0400 (EDT) | From | "Mr. James W. Laferriere" <> | Subject | Re: make NFS work with 64KB page-size |
| |
Hello Neil , Hth , JimL
+++ ./net/sunrpc/svc.c 2003-06-19 11:38:30.000000000 +1000 ...snip... - int pages = 2 + (size+ PAGE_SIZE -1) / PAGE_SIZE; + int page; ^^^^ s/b pages ?
On Thu, 19 Jun 2003, Neil Brown wrote: > On Wednesday June 18, davidm@napali.hpl.hp.com wrote: > > NFS currently bugs out on kernels with a page size of 64KB. The > > reason is a mismatch between RPCSVC_MAXPAGES and a calculation in > > svc_init_buffer(). I'm not entirely certain which calculation is the > > right one, but if I understand the code correctly, RPCSVC_MAXPAGES is > > right and svc_init_buffer() is wrong. The patch below fixes the > > latter. > > I think the +2 is right. > > For read/readdir the reply can be slightly larger than the "payload", > (headers, etc) so we need one payload, plus one for the rest of the > reply, plus one to hold the request. > > For write, the request can be large than the payload, so again we need > payload + 1 (for request) + 1 (for reply). > Something like the following. > NeilBrown -- +------------------------------------------------------------------+ | James W. Laferriere | System Techniques | Give me VMS | | Network Engineer | P.O. Box 854 | Give me Linux | | babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP | +------------------------------------------------------------------+ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |