diff options
author | 2020-06-23 21:01:19 -0400 | |
---|---|---|
committer | 2020-06-29 14:48:28 -0400 | |
commit | bf2654017e0268cc83dc88d56f0e67ff4406631d (patch) | |
tree | 66ca83c8d4156b8dc44b7097e4accfc74fb70520 /fs/nfsd | |
parent | nfsd4: fix nfsdfs reference count loop (diff) | |
download | linux-bf2654017e0268cc83dc88d56f0e67ff4406631d.tar.gz linux-bf2654017e0268cc83dc88d56f0e67ff4406631d.tar.bz2 linux-bf2654017e0268cc83dc88d56f0e67ff4406631d.zip |
nfsd: fix nfsdfs inode reference count leak
I don't understand this code well, but I'm seeing a warning about a
still-referenced inode on unmount, and every other similar filesystem
does a dput() here.
Fixes: e8a79fb14f6b ("nfsd: add nfsd/clients directory")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index cf98a81ca1ea..cd05732f8eaa 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1335,6 +1335,7 @@ void nfsd_client_rmdir(struct dentry *dentry) WARN_ON_ONCE(ret); fsnotify_rmdir(dir, dentry); d_delete(dentry); + dput(dentry); inode_unlock(dir); } |