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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:55:39 +0000 (15:55 -0800)
commit26eeb392cec0548e23da48b63e6d026dfb22f114
tree8557254c44bacb4fc938e3359bcd31608deb0649
parentdc3c21a88ffd926ef1ae9eaeb69c999bc94d2cc9
nfsd: don't halt scanning the DRC LRU list when there's an RC_INPROG entry

commit 1b19453d1c6abcfa7c312ba6c9f11a277568fc94 upstream.

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>
Cc: Joseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfscache.c