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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:54:14 +0000 (18:54 -0700)
commit03e9dd7847298ea8328b914de8f4777e238cdb77
treea32ddbeb713ae9cf8048abcdd924aecefd074afa
parent4b331d38a2add7b27ea44d26d9146ad1aabcbaab
nfsd: don't try to reuse an expired DRC entry off the list

commit a0ef5e19684f0447da9ff0654a12019c484f57ca upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfscache.c