diff options
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r-- | net/sunrpc/cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 5478a015ab00..49eb37010aa3 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
@@ -262,7 +262,8 @@ int cache_check(struct cache_detail *detail, | |||
262 | if (rqstp == NULL) { | 262 | if (rqstp == NULL) { |
263 | if (rv == -EAGAIN) | 263 | if (rv == -EAGAIN) |
264 | rv = -ENOENT; | 264 | rv = -ENOENT; |
265 | } else if (rv == -EAGAIN || age > refresh_age/2) { | 265 | } else if (rv == -EAGAIN || |
266 | (h->expiry_time != 0 && age > refresh_age/2)) { | ||
266 | dprintk("RPC: Want update, refage=%ld, age=%ld\n", | 267 | dprintk("RPC: Want update, refage=%ld, age=%ld\n", |
267 | refresh_age, age); | 268 | refresh_age, age); |
268 | if (!test_and_set_bit(CACHE_PENDING, &h->flags)) { | 269 | if (!test_and_set_bit(CACHE_PENDING, &h->flags)) { |