linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v3] a stateid race and a cleanup
@ 2020-09-23 17:37 Benjamin Coddington
  2020-09-23 17:37 ` [PATCH 1/2 v3] NFSv4: Fix a livelock when CLOSE pre-emptively bumps state sequence Benjamin Coddington
  2020-09-23 17:37 ` [PATCH 2/2 v3] NFSv4: cleanup unused zero_stateid copy Benjamin Coddington
  0 siblings, 2 replies; 8+ messages in thread
From: Benjamin Coddington @ 2020-09-23 17:37 UTC (permalink / raw)
  To: trond.myklebust, anna.schumaker; +Cc: linux-nfs

v3: pull out unnecessary state match checks.  V2 cover letter follows:

Cover letter this time explaining the v2:  Anna helped me find that the
first version's stable fix was wrong, but was fixed by the refactor patch
that followed.

After putting in the logic to fix the stable version, it was messy enough
that it made more sense to squash the two patches together.  So, this time
the first patch does rewrite nfs_need_update_open_stateid a bit more in
order to handle both cases:
	- where two OPENs race to NFS_OPEN_STATE and the second wins
	- where an OPEN and CLOSE+1 race to update nfs4_state and CLOSE+1 wins

The end result is that these two patches are code-equivalent to the first
three.  (It is still getting one final run through my testing, but I haven't
delayed posting for that).



Benjamin Coddington (2):
  NFSv4: Fix a livelock when CLOSE pre-emptively bumps state sequence
  NFSv4: cleanup unused zero_stateid copy

 fs/nfs/nfs4proc.c  | 16 +++++++++-------
 fs/nfs/nfs4state.c |  8 ++------
 2 files changed, 11 insertions(+), 13 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2020-09-23 19:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-23 17:37 [PATCH 0/2 v3] a stateid race and a cleanup Benjamin Coddington
2020-09-23 17:37 ` [PATCH 1/2 v3] NFSv4: Fix a livelock when CLOSE pre-emptively bumps state sequence Benjamin Coddington
2020-09-23 18:53   ` Trond Myklebust
2020-09-23 19:29     ` Benjamin Coddington
2020-09-23 19:39       ` Trond Myklebust
2020-09-23 19:46         ` Benjamin Coddington
2020-09-23 19:55           ` Trond Myklebust
2020-09-23 17:37 ` [PATCH 2/2 v3] NFSv4: cleanup unused zero_stateid copy Benjamin Coddington

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