]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01a298feb51fced91bc75fa409aa43d1213ca027
tree79294cae386ffbcaccfac56c2b86a065e0d6d016
parent12b75d6f792972e824982a36d3ddc2fc54f883cd
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