aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-09-21 22:55:06 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-09-22 15:33:12 -0400
commite95dffa4304186ad87963255f3e5e96b5c41849f (patch)
treec5e382e2272b8ef8d7edfc480060608cd5bb493d /net/sunrpc/cache.c
parentf904be9cc77f361d37d71468b13ff3d1a1823dea (diff)
sunrpc/cache: fix recent breakage of cache_clean_deferred
commit 6610f720e9e8103c22d1f1ccf8fbb695550a571f broke cache_clean_deferred as entries are no longer added to the pending list for subsequent revisiting. So put those requests back on the pending list. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r--net/sunrpc/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index ac2c6e6abe65..ff733dfef3b8 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -671,8 +671,10 @@ void cache_clean_deferred(void *owner)
671 spin_lock(&cache_defer_lock); 671 spin_lock(&cache_defer_lock);
672 672
673 list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) { 673 list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) {
674 if (dreq->owner == owner) 674 if (dreq->owner == owner) {
675 __unhash_deferred_req(dreq); 675 __unhash_deferred_req(dreq);
676 list_add(&dreq->recent, &pending);
677 }
676 } 678 }
677 spin_unlock(&cache_defer_lock); 679 spin_unlock(&cache_defer_lock);
678 680