Skip to content

Commit 2e49be0

Browse files
committed
NFSv4: handle ERR_GRACE on delegation recalls
JIRA: https://issues.redhat.com/browse/RHEL-115855 commit be390f9 Author: Olga Kornievskaia <okorniev@redhat.com> Date: Mon Aug 11 14:18:48 2025 -0400 NFSv4: handle ERR_GRACE on delegation recalls RFC7530 states that clients should be prepared for the return of NFS4ERR_GRACE errors for non-reclaim lock and I/O requests. Signed-off-by: Olga Kornievskaia <okorniev@redhat.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com> Signed-off-by: Scott Mayhew <smayhew@redhat.com>
1 parent 045c5eb commit 2e49be0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfs/nfs4proc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7826,10 +7826,10 @@ int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state,
78267826
return err;
78277827
do {
78287828
err = _nfs4_do_setlk(state, F_SETLK, fl, NFS_LOCK_NEW);
7829-
if (err != -NFS4ERR_DELAY)
7829+
if (err != -NFS4ERR_DELAY && err != -NFS4ERR_GRACE)
78307830
break;
78317831
ssleep(1);
7832-
} while (err == -NFS4ERR_DELAY);
7832+
} while (err == -NFS4ERR_DELAY || err == -NFSERR_GRACE);
78337833
return nfs4_handle_delegation_recall_error(server, state, stateid, fl, err);
78347834
}
78357835

0 commit comments

Comments
 (0)