summaryrefslogtreecommitdiff
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2025-01-27 00:50:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 15:42:06 +0300
commit2efd4ea170894c8fde120dea107c85135c0ad894 (patch)
tree084030e6c52c4a1b255ddf1e4b81f8cf343b3313 /rust/helpers/workqueue.c
parent83abd7f34a08c1d6730e3a96289e8cbf4b4079ce (diff)
downloadlinux-2efd4ea170894c8fde120dea107c85135c0ad894.tar.xz
NFSD: Never return NFS4ERR_FILE_OPEN when removing a directory
commit 370345b4bd184a49ac68d6591801e5e3605b355a upstream. RFC 8881 Section 18.25.4 paragraph 5 tells us that the server should return NFS4ERR_FILE_OPEN only if the target object is an opened file. This suggests that returning this status when removing a directory will confuse NFS clients. This is a version-specific issue; nfsd_proc_remove/rmdir() and nfsd3_proc_remove/rmdir() already return nfserr_access as appropriate. Unfortunately there is no quick way for nfsd4_remove() to determine whether the target object is a file or not, so the check is done in in nfsd_unlink() for now. Reported-by: Trond Myklebust <trondmy@hammerspace.com> Fixes: 466e16f0920f ("nfsd: check for EBUSY from vfs_rmdir/vfs_unink.") Reviewed-by: Jeff Layton <jlayton@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions