Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e95dffa4 authored by NeilBrown's avatar NeilBrown Committed by J. Bruce Fields
Browse files

sunrpc/cache: fix recent breakage of cache_clean_deferred



commit 6610f720
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: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent f904be9c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);