nfsd: don't try to reuse an expired DRC entry off the list
authorJeff Layton <jlayton@redhat.com>
Thu, 5 Dec 2013 11:00:51 +0000 (06:00 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 11 Dec 2013 16:27:04 +0000 (11:27 -0500)
commita0ef5e19684f0447da9ff0654a12019c484f57ca
tree3a9cbf1767a3fecb61971da12a34c8db6b89cc76
parent28303ca3090c0aa0dbbb72714c51fceb4b939f6d
nfsd: don't try to reuse an expired DRC entry off the list

Currently when we are processing a request, we try to scrape an expired
or over-limit entry off the list in preference to allocating a new one
from the slab.

This is unnecessarily complicated. Just use the slab layer.

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