From: J. Bruce Fields Date: Thu, 19 Mar 2020 15:30:38 +0000 (-0400) Subject: nfsd: fsnotify on rmdir under nfsd/clients/ X-Git-Tag: v5.4.33~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98a817eda5bc9dc2faefa05e5ad45a57e10a5da8;p=platform%2Fkernel%2Flinux-rpi.git nfsd: fsnotify on rmdir under nfsd/clients/ commit 69afd267982e733a555fede4e85fe30329ed0588 upstream. 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 Signed-off-by: Chuck Lever Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 11b42c5..d77c526 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); }