mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* make NFS work with 64KB page-size
@ 2003-06-18 22:56 David Mosberger
  2003-06-19  1:41 ` Neil Brown
  0 siblings, 1 reply; 4+ messages in thread
From: David Mosberger @ 2003-06-18 22:56 UTC (permalink / raw)
  To: neilb; +Cc: nfs, linux-kernel, davidm

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.

If the patch looks right, could you make sure it finds its way into
Linus' tree?

Thanks,

	--david

===== net/sunrpc/svc.c 1.20 vs edited =====
--- 1.20/net/sunrpc/svc.c	Fri Feb  7 12:25:20 2003
+++ edited/net/sunrpc/svc.c	Wed Jun 18 15:02:19 2003
@@ -111,7 +111,7 @@
 static int
 svc_init_buffer(struct svc_rqst *rqstp, unsigned int size)
 {
-	int pages = 2 + (size+ PAGE_SIZE -1) / PAGE_SIZE;
+	int pages = 1 + (size+ PAGE_SIZE -1) / PAGE_SIZE;
 	int arghi;
 	
 	rqstp->rq_argused = 0;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-19  1:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-18 22:56 make NFS work with 64KB page-size David Mosberger
2003-06-19  1:41 ` Neil Brown
2003-06-19  1:21   ` David Mosberger
2003-06-19  1:26   ` Mr. James W. Laferriere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®