Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 956c4fee authored by Benny Halevy's avatar Benny Halevy Committed by J. Bruce Fields
Browse files

nfsd4: need to destroy revoked delegations in destroy_client



[use list_splice_init]
Signed-off-by: default avatarBenny Halevy <bhalevy@primarydata.com>
[bfields: no need for recall_lock here]
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 01a87d91
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1129,6 +1129,11 @@ destroy_client(struct nfs4_client *clp)
		dp = list_entry(reaplist.next, struct nfs4_delegation, dl_recall_lru);
		destroy_delegation(dp);
	}
	list_splice_init(&clp->cl_revoked, &reaplist);
	while (!list_empty(&reaplist)) {
		dp = list_entry(reaplist.next, struct nfs4_delegation, dl_recall_lru);
		destroy_revoked_delegation(dp);
	}
	while (!list_empty(&clp->cl_openowners)) {
		oo = list_entry(clp->cl_openowners.next, struct nfs4_openowner, oo_perclient);
		release_openowner(oo);