From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 13/14] NLM: Shrink the maximum request size of NLM4 requests Date: Fri, 19 Jan 2007 00:13:55 +0000 Message-ID: <20070119001355.GD13473@infradead.org> References: <20070118232356.23310.6705.stgit@localhost.localdomain> <20070118233056.23310.1289.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: trond.myklybust@fys.uio.no, nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1H7he5-0002dl-3R for nfs@lists.sourceforge.net; Thu, 18 Jan 2007 16:30:17 -0800 Received: from pentafluge.infradead.org ([213.146.154.40]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1H7hOH-0007Sl-Rr for nfs@lists.sourceforge.net; Thu, 18 Jan 2007 16:13:59 -0800 To: Chuck Lever In-Reply-To: <20070118233056.23310.1289.stgit@localhost.localdomain> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net On Thu, Jan 18, 2007 at 06:30:56PM -0500, Chuck Lever wrote: > NLM version 4 requests estimate the call and reply header sizes rather > conservatively, using the very maximum size allowed in the protocol even > though Linux always uses only a small fraction of the allowable space. > > Reduce the size of caller and lock arguments to conserve RPC buffer space > while XDR encoding NLM4 arguments.. > +#ifndef MIN > +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) > +#endif please use the kernel min or min_t macros instead. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs