nfsd: don't halt scanning the DRC LRU list when there's an RC_INPROG entry
authorJeff Layton <jlayton@primarydata.com>
Thu, 5 Jun 2014 13:45:00 +0000 (09:45 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 6 Jun 2014 23:22:49 +0000 (19:22 -0400)
commit1b19453d1c6abcfa7c312ba6c9f11a277568fc94
tree79294cae386ffbcaccfac56c2b86a065e0d6d016
parent999e568354b8c797f344a2154761dd94cc84e4ac
nfsd: don't halt scanning the DRC LRU list when there's an RC_INPROG entry

Currently, the DRC cache pruner will stop scanning the list when it
hits an entry that is RC_INPROG. It's possible however for a call to
take a *very* long time. In that case, we don't want it to block other
entries from being pruned if they are expired or we need to trim the
cache to get back under the limit.

Fix the DRC cache pruner to just ignore RC_INPROG entries.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c