From 367b3113d7683ca729b57371b4ed738c11c4f367 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 14 Mar 2003 02:11:49 -0800 Subject: [PATCH] kNFSd: Assort fixes to nfsd auth cache stuff. 1/ call cache_fresh when replacing a cache entry (instead of only when updating) so that up-calls waiting on the replaced entry continue. 2/ in svcauth_unix_accept, don't put the verifier until all tests have succeeded. 3/ calculate size of request-being-deferred correctly. --- include/linux/sunrpc/cache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/sunrpc') diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index a3cdc080dd85..1d3bccefe959 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -190,6 +190,7 @@ RTN *FNAME ARGS \ else read_unlock(&(DETAIL)->hash_lock); \ if (set) \ cache_fresh(DETAIL, &tmp->MEMBER, item->MEMBER.expiry_time); \ + if (set==1 && new) cache_fresh(DETAIL, &new->MEMBER, 0); \ if (new) (DETAIL)->cache_put(&new->MEMBER, DETAIL); \ return tmp; \ } \ -- cgit v1.2.3