From patchwork Thu Nov 18 10:36:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Bharadwaj X-Patchwork-Id: 335521 X-Patchwork-Delegate: Trond.Myklebust@netapp.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAIAaoE2029338 for ; Thu, 18 Nov 2010 10:36:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755987Ab0KRKgt (ORCPT ); Thu, 18 Nov 2010 05:36:49 -0500 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:34150 "EHLO e28smtp03.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755876Ab0KRKgs (ORCPT ); Thu, 18 Nov 2010 05:36:48 -0500 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp03.in.ibm.com (8.14.4/8.13.1) with ESMTP id oAIAak0E022877 for ; Thu, 18 Nov 2010 16:06:46 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id oAIAakbx3989578 for ; Thu, 18 Nov 2010 16:06:46 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oAIAajaF020476 for ; Thu, 18 Nov 2010 21:36:45 +1100 Received: from linux.vnet.ibm.com (shiprjai.in.ibm.com [9.124.35.17]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id oAIAaich020431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 18 Nov 2010 21:36:45 +1100 Date: Thu, 18 Nov 2010 16:06:43 +0530 From: Arun R Bharadwaj To: linux-nfs@vger.kernel.org Cc: ffilz@us.ibm.com, jlayton@redhat.com Subject: [PATCH][BUG]: Pure nfs client performance using odirect. Message-ID: <20101118103643.GA13235@linux.vnet.ibm.com> Reply-To: arun@linux.vnet.ibm.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 18 Nov 2010 10:36:50 +0000 (UTC) Index: linux-2.6.36-rc7/fs/nfs/direct.c =================================================================== --- linux-2.6.36-rc7.orig/fs/nfs/direct.c 2010-11-18 15:53:15.904972002 +0530 +++ linux-2.6.36-rc7/fs/nfs/direct.c 2010-11-18 15:54:01.184972001 +0530 @@ -867,7 +867,7 @@ goto out; nfs_alloc_commit_data(dreq); - if (dreq->commit_data == NULL || count < wsize) + if (dreq->commit_data == NULL || count <= wsize) sync = NFS_FILE_SYNC; dreq->inode = inode;