nfsd: add recurring workqueue job to clean the cache
authorJeff Layton <jlayton@redhat.com>
Mon, 4 Feb 2013 13:18:05 +0000 (08:18 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 Feb 2013 22:19:12 +0000 (17:19 -0500)
commitaca8a23de60c705e2458b2c6731ad59aa0717f83
tree9b6d8ae1402b9ee701b907023d72b4f29fd41fb7
parent2c6b691c05bf77c4bc7c9f1a9b6d93a160928421
nfsd: add recurring workqueue job to clean the cache

It's not sufficient to only clean the cache when requests come in. What
if we have a flurry of activity and then the server goes idle? Add a
workqueue job that will clean the cache every RC_EXPIRE period.

Care is taken to only run this when we expect to have entries expiring.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c