From 2c19c648a6aaac113315229918c218ef3b7c21ec Mon Sep 17 00:00:00 2001 From: Greg Banks Date: Wed, 1 Apr 2009 07:28:15 +1100 Subject: [PATCH] --- yaml --- r: 153686 b: refs/heads/master c: cf0a586cf41a1779edeee7562afb5d0ab46c7cf4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfscache.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index cce661a6ebf1..386ba9ead22f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fca4217c5bab31019b5247e977673c9fcc385f6b +refs/heads/master: cf0a586cf41a1779edeee7562afb5d0ab46c7cf4 diff --git a/trunk/fs/nfsd/nfscache.c b/trunk/fs/nfsd/nfscache.c index 6f0aa4989c61..4638635c5d87 100644 --- a/trunk/fs/nfsd/nfscache.c +++ b/trunk/fs/nfsd/nfscache.c @@ -174,8 +174,8 @@ nfsd_cache_lookup(struct svc_rqst *rqstp, int type) } } - /* This should not happen */ - if (rp == NULL) { + /* All entries on the LRU are in-progress. This should not happen */ + if (&rp->c_lru == &lru_head) { static int complaints; printk(KERN_WARNING "nfsd: all repcache entries locked!\n");