From: andros@netapp.com
To: trond.myklebust@netapp.com
Cc: linux-nfs@vger.kernel.org, Andy Adamson <andros@netapp.com>
Subject: [PATCH 0/1] NFSv4.0 reclaim reboot state when re-establishing clientid
Date: Fri, 28 Sep 2012 17:05:08 -0400 [thread overview]
Message-ID: <1348866309-2049-1-git-send-email-andros@netapp.com> (raw)
From: Andy Adamson <andros@netapp.com>
This patch fixes an infinite loop where a file is open during a reboot, and
written to after the reboot. NFS4ERR_BADSESSION is intially returned, and
first the session, and then the clientid are re-established. But since the
open state was not recovered, the write after reboot would use the old stateid.
The server then returns NFS4ERR_STALE_STATEID as it should, and the client
then goes into the NFS4CLNT_CHECK_LEASE state which sends a solo sequence
operation to check the lease. Since the clientid/session has been
re-established, the NFS4CLNT_CHECK_LEASE does not receive an error, and the
write is resent with the old stateid.....
-->Andy
Andy Adamson (1):
NFSv4.0 reclaim reboot state when re-establishing clientid
fs/nfs/nfs4state.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
--
1.7.7.6
next reply other threads:[~2012-09-28 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 21:05 andros [this message]
2012-09-28 21:05 ` [PATCH 1/1] NFSv4.0 reclaim reboot state when re-establishing clientid andros
2012-10-01 22:15 ` Myklebust, Trond
2012-10-01 23:12 ` Andy Adamson
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=1348866309-2049-1-git-send-email-andros@netapp.com \
--to=andros@netapp.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@netapp.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).