Skip to content

nfsd: don't let nfs4_file pin down the inode when it has no open state

Jeff Layton linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- eliminate the st_inode field from struct nfs4_ol_stateid

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4nfsd: Store the filehandle with the struct nfs4_filefs/nfsd/nfs4state.c fs/nfsd/state.h+7 -40 replies
2/4nfsd: Use the filehandle to look up the struct nfs4_file instead of inodefs/nfsd/nfs4state.c+23 -120 replies
3/4nfsd: nfs4_check_fh - make it actually check the filehandlefs/nfsd/nfs4state.c+1 -10 replies
4/4nfsd: Do not let nfs4_file pin the struct inodefs/nfsd/nfs4state.c fs/nfsd/state.h+28 -220 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] nfsd: don't let nfs4_file pin down the inode when it has no open state

v2:
- eliminate the st_inode field from struct nfs4_ol_stateid

This is a port of the patches that Trond sent the other day onto the current tip of Bruce's for-3.17 branch. It basically changes how nfs4_file objects are hashed. Instead of using the inode pointer (and pinning down an inode in the process), it uses the filehandle. This allows us to avoid taking an inode reference directly for the nfs4_file. With this, they're only taken by virtue of the files in the fi_fds array.

Jeff Layton (1):
nfsd: Do not let nfs4_file pin the struct inode

Trond Myklebust (3):
nfsd: Store the filehandle with the struct nfs4_file
nfsd: Use the filehandle to look up the struct nfs4_file instead of
inode
nfsd: nfs4_check_fh - make it actually check the filehandle

 fs/nfsd/nfs4state.c | 86 +++++++++++++++++++++++++++++++++--------------------
 fs/nfsd/state.h     |  2 +-
 2 files changed, 54 insertions(+), 34 deletions(-)
Signature · 1 line
1.9.3