Skip to content

Commit

Permalink
sunrpc/cache: fix recent breakage of cache_clean_deferred
Browse files Browse the repository at this point in the history
commit 6610f72
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>
  • Loading branch information
neilbrown authored and J. Bruce Fields committed Sep 22, 2010
1 parent f904be9 commit e95dffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/sunrpc/cache.c
Original file line number Diff line number Diff line change
@@ -671,8 +671,10 @@ void cache_clean_deferred(void *owner)
spin_lock(&cache_defer_lock);

list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) {
if (dreq->owner == owner)
if (dreq->owner == owner) {
__unhash_deferred_req(dreq);
list_add(&dreq->recent, &pending);
}
}
spin_unlock(&cache_defer_lock);

0 comments on commit e95dffa

Please sign in to comment.