All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: linux-fsdevel@vger.kernel.org,
	Linux NFS Mailing List <nfs@lists.sourceforge.net>
Subject: [PATCH] connectathon special test failure in recent kernels
Date: Sun, 20 Aug 2006 22:05:20 -0400	[thread overview]
Message-ID: <44E914E0.5030907@RedHat.com> (raw)
In-Reply-To: <44E486F3.2020600@RedHat.com>

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

Steve Dickson wrote:
> Well the patch in question is:
> 
> commit 1de3fc12ea085690547a54b6efa01c7348f1cebd
> tree ea865786120cfcefac563c54693fef8d3d718f10
> parent 128e6ced247cda88f96fa9f2e4ba8b2c4a681560
> author Trond Myklebust <Trond.Myklebust@netapp.com> Thu, 25 May 2006
> 09:40:44 -0400
> committer Trond Myklebust <Trond.Myklebust@netapp.com> Fri, 09 Jun 2006
> 17:34:03 -0400
> 
> NFS: Clean up and fix page zeroing when we have short reads

Attached is that patch that fixes the regression caused by
the above patch... I've tested with both the connectathon test suite
and the fsx test suite.

The patch is based on the 2.6.18-rc4 kernel tree.

steved.

[-- Attachment #2: linux-2.6.18-rc4-nfs-holey.patch --]
[-- Type: text/x-patch, Size: 1144 bytes --]

The patch fixes a regression that causes the special tests
of the Connectation tests suite to fail. When a hole in a 
file is created (like the holey test does), the page will
be allocated but there will be nothing read into it. The
means the number of byte read from the server will be
zero (i.e.  data->res.count). In the case, the page
still has PageUptodate-ed which is what this patch
does.

Signed-off-by: Steve Dickson <steved@redhat.com>

--- linux-2.6.18-rc4/fs/nfs/read.c.orig	2006-08-20 13:49:22.000000000 -0400
+++ linux-2.6.18-rc4/fs/nfs/read.c	2006-08-20 13:58:59.000000000 -0400
@@ -476,13 +476,14 @@
 	unsigned int base = data->args.pgbase;
 	struct page **pages;
 
-	if (unlikely(count == 0))
-		return;
 	pages = &data->args.pages[base >> PAGE_CACHE_SHIFT];
 	base &= ~PAGE_CACHE_MASK;
 	count += base;
-	for (;count >= PAGE_CACHE_SIZE; count -= PAGE_CACHE_SIZE, pages++)
+	if (count == 0) 
 		SetPageUptodate(*pages);
+	else 
+		for (;count >= PAGE_CACHE_SIZE; count -= PAGE_CACHE_SIZE, pages++)
+			SetPageUptodate(*pages);
 	/*
 	 * Was this an eof or a short read? If the latter, don't mark the page
 	 * as uptodate yet.

[-- Attachment #3: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #4: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

      parent reply	other threads:[~2006-08-21  2:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-08 19:20 connectathon special test failure in recent kernels Chuck Lever
2006-08-08 23:32 ` Trond Myklebust
2006-08-09  2:59   ` Chuck Lever
2006-08-17 15:10     ` Steve Dickson
2006-08-17 16:38       ` Chuck Lever
2006-08-17 17:07         ` Steve Dickson
2006-08-17 19:54           ` Trond Myklebust
2006-08-17 20:56             ` Steve Dickson
2006-08-17 22:37               ` Trond Myklebust
2006-08-18  2:50                 ` J. Bruce Fields
2006-08-18  2:55                   ` Trond Myklebust
2006-08-21  2:05       ` Steve Dickson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44E914E0.5030907@RedHat.com \
    --to=steved@redhat.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=nfs@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.