sunrpc: don't keep expired entries in the auth caches.
authorNeilBrown <neilb@suse.de>
Wed, 3 Feb 2010 06:31:31 +0000 (17:31 +1100)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 14 Mar 2010 22:03:54 +0000 (18:03 -0400)
commit3af4974eb2c7867d6e160977195dfde586d0e564
treeec9f0bcadbeab55ccc3a0bf8cf512ebf80c72e9a
parente739cf1da48e841bc5d744a99764c1a668b4bdd2
sunrpc: don't keep expired entries in the auth caches.

currently expired entries remain in the auth caches as long
as there is a reference.
This was needed long ago when the auth_domain cache used the same
cache infrastructure.  But since that (being a very different sort
of cache) was separated, this test is no longer needed.

So remove the test on refcnt and tidy up the surrounding code.

This allows the cache_dequeue call (which needed to be there to
drop a potentially awkward reference) can be moved outside of the
spinlock which is a better place for it.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/cache.c