diff options
author | J. Bruce Fields <bfields@redhat.com> | 2020-03-19 11:30:38 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-03-19 11:33:42 -0400 |
commit | 69afd267982e733a555fede4e85fe30329ed0588 (patch) | |
tree | 9cd79ed0702d500e4d91d67b0bc8f16b5af713be /fs/nfsd/nfsctl.c | |
parent | 663e36f07666ff924012defa521f88875f6e5402 (diff) |
nfsd: fsnotify on rmdir under nfsd/clients/
Userspace should be able to monitor nfsd/clients/ to see when clients
come and go, but we're failing to send fsnotify events.
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-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 e109a1007704..3bb2db947d29 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1333,6 +1333,7 @@ void nfsd_client_rmdir(struct dentry *dentry) dget(dentry); ret = simple_rmdir(dir, dentry); WARN_ON_ONCE(ret); + fsnotify_rmdir(dir, dentry); d_delete(dentry); inode_unlock(dir); } |