]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4: Be less aggressive about returning delegations for open files
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 3 Apr 2013 18:33:49 +0000 (14:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 3 Apr 2013 18:48:56 +0000 (14:48 -0400)
commit29dbc93e2855a9fb734dd299807b6e02ca6b74ff
tree03527eaeb3efb2cd6e0b6d58fd8c9688f07c5057
parentbe14e36b62f1c0c2c55a2a23d077b45814e96339
NFSv4: Be less aggressive about returning delegations for open files

Currently, if the application that holds the file open isn't doing
I/O, we may end up returning the delegation. This means that we can
no longer cache the file as aggressively, and often also that we
multiply the state that both the server and the client needs to track.

This patch adds a check for open files to the routine that scans
for delegations that are unreferenced.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/delegation.c