Skip to content

Commit aed88b3

Browse files
author
CKI KWF Bot
committed
Merge: NFS: remove revoked delegation from server's delegation list
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7510 JIRA: https://issues.redhat.com/browse/RHEL-123617 The upstream work to resolve NFS client delegation cleanup in https://issues.redhat.com/browse/RHEL-70625 .. is missing an upstream dependency: 7ef6010 NFS: remove revoked delegation from server's delegation list We must take it here and also backport to affected RHEL-9 Z-streams. Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Approved-by: Jay Shin <jaeshin@redhat.com> Approved-by: Scott Mayhew <smayhew@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 3b4defb + b63f887 commit aed88b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/nfs/delegation.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,11 @@ void nfs_delegation_mark_returned(struct inode *inode,
10451045
}
10461046

10471047
nfs_mark_delegation_revoked(delegation);
1048+
clear_bit(NFS_DELEGATION_RETURNING, &delegation->flags);
1049+
spin_unlock(&delegation->lock);
1050+
if (nfs_detach_delegation(NFS_I(inode), delegation, NFS_SERVER(inode)))
1051+
nfs_put_delegation(delegation);
1052+
goto out_rcu_unlock;
10481053

10491054
out_clear_returning:
10501055
clear_bit(NFS_DELEGATION_RETURNING, &delegation->flags);

0 commit comments

Comments
 (0)