Skip to content

Commit f8f71d0

Browse files
author
J. Bruce Fields
committed
nfsd4: forbid all renames during grace period
The idea here was that renaming a file on a nosubtreecheck export would make lookups of the old filehandle return STALE, making it impossible for clients to reclaim opens. But during the grace period I think we should also hold off on operations that would break delegations. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent d8836f7 commit f8f71d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,7 @@ nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
863863
struct nfsd4_rename *rename = &u->rename;
864864
__be32 status;
865865

866-
if (opens_in_grace(SVC_NET(rqstp)) &&
867-
!(cstate->save_fh.fh_export->ex_flags & NFSEXP_NOSUBTREECHECK))
866+
if (opens_in_grace(SVC_NET(rqstp)))
868867
return nfserr_grace;
869868
status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname,
870869
rename->rn_snamelen, &cstate->current_fh,

0 commit comments

Comments
 (0)