nfsd: Do not let nfs4_file pin the struct inode
Remove the fi_inode field in struct nfs4_file in order to remove the possibility of struct nfs4_file pinning the inode when it does not have any open state. The only place we still need to get to an inode is in check_for_locks, so change it to use find_any_file and use the inode from any that it finds. If it doesn't find one, then just assume there aren't any. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:

committed by
J. Bruce Fields

parent
b07c54a4a3
commit
f9c00c3ab4
@@ -397,7 +397,6 @@ struct nfs4_file {
|
||||
struct file_lock *fi_lease;
|
||||
atomic_t fi_delegees;
|
||||
struct knfsd_fh fi_fhandle;
|
||||
struct inode *fi_inode;
|
||||
bool fi_had_conflict;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user