Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265680AbTFSBRO (ORCPT ); Wed, 18 Jun 2003 21:17:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265681AbTFSBRN (ORCPT ); Wed, 18 Jun 2003 21:17:13 -0400 Received: from filesrv1.baby-dragons.com ([199.33.245.55]:60069 "EHLO filesrv1.baby-dragons.com") by vger.kernel.org with ESMTP id S265680AbTFSBRM (ORCPT ); Wed, 18 Jun 2003 21:17:12 -0400 Date: Wed, 18 Jun 2003 21:26:24 -0400 (EDT) From: "Mr. James W. Laferriere" To: Neil Brown cc: nfs@lists.sourceforge.net, Linux Kernel Maillist Subject: Re: make NFS work with 64KB page-size In-Reply-To: <16113.5317.341448.162576@gargle.gargle.HOWL> Message-ID: References: <16112.60959.588900.824473@napali.hpl.hp.com> <16113.5317.341448.162576@gargle.gargle.HOWL> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1652 Lines: 38 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/