]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Limit the total number of cached delegations
authorTrond Myklebust <trondmy@gmail.com>
Mon, 27 Jan 2020 14:58:19 +0000 (09:58 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Feb 2020 21:35:07 +0000 (16:35 -0500)
commit48d1b797290bf75d9cae2740321c07c294c4b0ff
tree1e662a1cf98f5fbef1a540f53732bd3facc1afea
parent1fc2de5342ae01a14f7bf20a622be5e2db228174
NFSv4: Limit the total number of cached delegations

Delegations can be expensive to return, and can cause scalability issues
for the server. Let's therefore try to limit the number of inactive
delegations we hold.
Once the number of delegations is above a certain threshold, start
to return them on close.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/delegation.c