in memory LRU, try to meet the deficit in one go

parent e18826da
......@@ -3171,9 +3171,11 @@ fellow_cache_lru_work(struct worker *wrk, struct fellow_cache_lru *lru)
fellow_cache_lru_seg_evict_locked(fcs,
&alloc, lru);
AZ(pthread_mutex_unlock(&fco->mtx));
AZ(pthread_mutex_unlock(&lru->lru_mtx));
AN(buddy_return_ptr_extent(rets, &alloc));
fco = NULL;
if (rets->size < lru->fc->membuddy->deficit)
continue;
AZ(pthread_mutex_unlock(&lru->lru_mtx));
break;
}
if (fcs->state == FCO_INCORE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment