Skip to content

nfsd: deny mode handling overhaul

Jeff Layton linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11nfsd: Add fine grained protection for the nfs4_file->fi_stateids listfs/nfsd/nfs4state.c fs/nfsd/state.h+19 -30 replies
2/11nfsd: Add locking to the nfs4_file->fi_fds[] arrayfs/nfsd/nfs4state.c fs/nfsd/state.h+118 -420 replies
3/11nfsd: clean up helper __release_lock_stateidfs/nfsd/nfs4state.c+2 -40 replies
4/11nfsd: refactor nfs4_file_get_access and nfs4_file_put_accessfs/nfsd/nfs4state.c+27 -210 replies
5/11nfsd: remove nfs4_file_put_fdfs/nfsd/nfs4state.c+2 -110 replies
6/11nfsd: shrink st_access_bmap and st_deny_bmapfs/nfsd/nfs4state.c fs/nfsd/state.h+29 -130 replies
7/11nfsd: set stateid access and deny bits in nfs4_get_vfs_filefs/nfsd/nfs4state.c+12 -110 replies
8/11nfsd: clean up reset_union_bmap_denyfs/nfsd/nfs4state.c+3 -20 replies
9/11nfsd: always hold the fi_lock when bumping fi_access refcountsfs/nfsd/nfs4state.c+14 -20 replies
10/11nfsd: make deny mode enforcement more efficient and close races in itfs/nfsd/nfs4state.c fs/nfsd/state.h+125 -587 replies
11/11nfsd: cleanup and rename nfs4_check_openfs/nfsd/nfs4state.c+6 -90 replies

Reviews trailers per patch

5 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph Hellwig
SeriesR-b
1/11R-b
2/11R-b
3/11R-b
4/11
5/11
6/11R-b
7/11
8/11
9/11
10/11
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] nfsd: deny mode handling overhaul

Here is the deny mode handling overhaul broken out into a separate series, as requested by Christoph. I've tried to address most of his review comments, but I may have missed some. Let me know if if I did.

Part of the client_mutex removal series involves cleaning up the handling of deny modes in the server in order to setting and enforcement atomic.

This does add a new per-nfs4_file spinlock, but in principle it should never be contended while the client_mutex is still wrapped around all of this code.

Jeff Layton (8):
nfsd: refactor nfs4_file_get_access and nfs4_file_put_access
nfsd: remove nfs4_file_put_fd
nfsd: shrink st_access_bmap and st_deny_bmap
nfsd: set stateid access and deny bits in nfs4_get_vfs_file
nfsd: clean up reset_union_bmap_deny
nfsd: always hold the fi_lock when bumping fi_access refcounts
nfsd: make deny mode enforcement more efficient and close races in it
nfsd: cleanup and rename nfs4_check_open

Trond Myklebust (3):
nfsd: Add fine grained protection for the nfs4_file->fi_stateids list
nfsd: Add locking to the nfs4_file->fi_fds[] array
nfsd: clean up helper __release_lock_stateid

 fs/nfsd/nfs4state.c | 437 ++++++++++++++++++++++++++++++++++++++--------------
 fs/nfsd/state.h     |  32 +---
 2 files changed, 325 insertions(+), 144 deletions(-)
Signature · 1 line
1.9.3