]> 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)
commit124906fa0d1a804e238ee94d16c88deb6ef576f8
tree1e662a1cf98f5fbef1a540f53732bd3facc1afea
parent3b0b7a1b45c46bbd354a6e086d62669acb0b9e64
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