linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] nfsd: fix unhashing races in nfsv4 stateid handling
@ 2015-08-24 16:41 Jeff Layton
  2015-08-24 16:41 ` [PATCH v2 1/2] nfsd: ensure that the ol stateid hash reference is only put once Jeff Layton
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jeff Layton @ 2015-08-24 16:41 UTC (permalink / raw)
  To: bfields; +Cc: Anna Schumaker, Andrew W Elble, linux-nfs

v2:
- fix the fault injection code to handle the prototype change to
  unhash_lock_stateid

Slightly updated set, to fix a problem that Wu found when enabling the
nfsd fault injection code. Original cover-letter follows:

-------------------------[snip]-------------------

I hadn't heard from Andrew in a while so I'm not 100% clear on whether
his patches had fixed the race that he had spotted in the NFSv4
unhashing code.

Still, once he had done the analysis, the problem was clear. I think
this patchset should fix the problem in a relatively clean way. I've
run some tests against this and it seems to not have broken anything,
but I haven't been able to reproduce the actual race so I can't
verify that this fixes it.

Andrew, Anna, if you are able to do so could you test these patches
and let us know whether this fixes those races?

Jeff Layton (2):
  nfsd: ensure that the ol stateid hash reference is only put once
  nfsd: ensure that delegation stateid hash references are only put once

 fs/nfsd/nfs4state.c | 84 +++++++++++++++++++++++++++++++++--------------------
 1 file changed, 53 insertions(+), 31 deletions(-)

-- 
2.4.3


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

end of thread, other threads:[~2015-08-25 19:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24 16:41 [PATCH v2 0/2] nfsd: fix unhashing races in nfsv4 stateid handling Jeff Layton
2015-08-24 16:41 ` [PATCH v2 1/2] nfsd: ensure that the ol stateid hash reference is only put once Jeff Layton
2015-08-24 20:34   ` J. Bruce Fields
2015-08-24 20:40     ` Jeff Layton
2015-08-25 19:21       ` J. Bruce Fields
2015-08-24 16:41 ` [PATCH v2 2/2] nfsd: ensure that delegation stateid hash references are " Jeff Layton
2015-08-24 19:54 ` [PATCH v2 0/2] nfsd: fix unhashing races in nfsv4 stateid handling Andrew W Elble
2015-08-25 18:32   ` Andrew W Elble
2015-08-25 19:17     ` J. Bruce Fields
2015-08-24 21:25 ` Anna Schumaker

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