From: Steve Dickson <SteveD@redhat.com>
To: nfs@lists.sourceforge.net
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Subject: Re: [PATCH] NFS - Fix for Infinite loop during syncing
Date: Mon, 13 Dec 2004 19:14:36 -0500 [thread overview]
Message-ID: <41BE306C.2020804@RedHat.com> (raw)
In-Reply-To: <41BE0789.8070001@RedHat.com>
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
Steve Dickson wrote:
> Now that I think about it... probably makes sense to set NFS_INO_STALE in
> nfs_commit_done() as well... From my debugging, it just seems the
> earlier we
> break the inode... the better....
I liked this idea some much that here is the patch for it... I really do
think
the sooner we know an inode is broken... the better...
steved.
[-- Attachment #2: linux-2.4.28-nfs-syncloop.patch --]
[-- Type: text/plain, Size: 807 bytes --]
--- linux-2.4.28/fs/nfs/write.c.orig 2004-04-14 09:05:40.000000000 -0400
+++ linux-2.4.28/fs/nfs/write.c 2004-12-13 19:04:23.000000000 -0500
@@ -1073,6 +1073,9 @@ nfs_writeback_done(struct rpc_task *task
SetPageError(page);
if (req->wb_file)
req->wb_file->f_error = task->tk_status;
+ if (task->tk_status == -ESTALE)
+ NFS_FLAGS(inode) |= NFS_INO_STALE;
+
nfs_inode_remove_request(req);
dprintk(", error = %d\n", task->tk_status);
goto next;
@@ -1223,6 +1226,9 @@ nfs_commit_done(struct rpc_task *task)
if (task->tk_status < 0) {
if (req->wb_file)
req->wb_file->f_error = task->tk_status;
+ if (task->tk_status == -ESTALE)
+ NFS_FLAGS(inode) |= NFS_INO_STALE;
+
nfs_inode_remove_request(req);
dprintk(", error = %d\n", task->tk_status);
goto next;
next prev parent reply other threads:[~2004-12-14 0:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-13 20:23 [PATCH] NFS - Fix for Infinite loop during syncing Steve Dickson
2004-12-13 20:45 ` Trond Myklebust
2004-12-13 21:20 ` Steve Dickson
2004-12-14 0:14 ` Steve Dickson [this message]
2005-01-31 17:44 ` Steve Dickson
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=41BE306C.2020804@RedHat.com \
--to=steved@redhat.com \
--cc=nfs@lists.sourceforge.net \
--cc=trond.myklebust@fys.uio.no \
/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.