mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
sunrpc/cache: fix recent breakage of cache_clean_deferred
commit 6610f720e9
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>
This commit is contained in:
parent
f904be9cc7
commit
e95dffa430
@ -671,8 +671,10 @@ void cache_clean_deferred(void *owner)
|
|||||||
spin_lock(&cache_defer_lock);
|
spin_lock(&cache_defer_lock);
|
||||||
|
|
||||||
list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) {
|
list_for_each_entry_safe(dreq, tmp, &cache_defer_list, recent) {
|
||||||
if (dreq->owner == owner)
|
if (dreq->owner == owner) {
|
||||||
__unhash_deferred_req(dreq);
|
__unhash_deferred_req(dreq);
|
||||||
|
list_add(&dreq->recent, &pending);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
spin_unlock(&cache_defer_lock);
|
spin_unlock(&cache_defer_lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user