Skip to content

nfsd state handling fixes

Oleg Drokin linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nfsd: Always lock state exclusively.fs/nfsd/nfs4state.c fs/nfsd/state.h+21 -210 replies
2/3nfsd: Extend the mutex holding region around in nfsd4_process_open2()fs/nfsd/nfs4state.c+13 -30 replies
3/3nfsd: Make init_open_stateid() a bit more wholefs/nfsd/nfs4state.c+12 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] nfsd state handling fixes

These three patches do the much discussed job of making nfsd state handling more robust in face of races where several opens arrive for the same file at the same time from the same client.

This does not yet handle a case when one of those opens gets an error and others don't.

Also this is undergoing testing ATM, so please only use it as a discussion/review piece for now.

Oleg Drokin (3):
nfsd: Always lock state exclusively.
nfsd: Extend the mutex holding region around in nfsd4_process_open2()
nfsd: Make init_open_stateid() a bit more whole

 fs/nfsd/nfs4state.c | 67 +++++++++++++++++++++++++++++------------------------
 fs/nfsd/state.h     |  2 +-
 2 files changed, 38 insertions(+), 31 deletions(-)
Signature · 1 line
2.7.4