linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] NFSv4.0 reclaim reboot state when re-establishing clientid
@ 2012-09-28 21:05 andros
  2012-09-28 21:05 ` [PATCH 1/1] " andros
  0 siblings, 1 reply; 4+ messages in thread
From: andros @ 2012-09-28 21:05 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, Andy Adamson

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-01 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-28 21:05 [PATCH 0/1] NFSv4.0 reclaim reboot state when re-establishing clientid andros
2012-09-28 21:05 ` [PATCH 1/1] " andros
2012-10-01 22:15   ` Myklebust, Trond
2012-10-01 23:12     ` Andy Adamson

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).