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

Commit 38942ba2 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Append delegations to the per-client list instead of prepending



Do so on the assumption that for most use cases, that list will turn into
a more or less LRU-ordered list, and so the list traversals in
nfs_client_return_marked_delegations() are likely to be shorter before
hitting a candidate to return.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent f0eede10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct
		if (freeme == NULL)
			goto out;
	}
	list_add_rcu(&delegation->super_list, &server->delegations);
	list_add_tail_rcu(&delegation->super_list, &server->delegations);
	rcu_assign_pointer(nfsi->delegation, delegation);
	delegation = NULL;