]> asedeno.scripts.mit.edu Git - linux.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)
commit10717f45639f6c1bc27b56405252c3a027406d92
tree1e662a1cf98f5fbef1a540f53732bd3facc1afea
parentd2269ea14ebd2a73f291d6b3a7a7d320ec00270c
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