fellow_cache: for readahead, check allocations after returns

parent 739a4519
......@@ -4593,11 +4593,12 @@ fellow_cache_obj_readahead(
}
*ranp = ran;
uint8_t rdy = buddy_alloc_async(&reqs[NREQS]);
(void) buddy_alloc_async(&reqs[NREQS]);
if (dowry.bits)
buddy_return1_ptr_page(fc->membuddy, &dowry);
buddy_alloc_async_done(&reqs[OREQS]);
buddy_return(rets);
uint8_t rdy = buddy_alloc_async_ready(&reqs[NREQS]);
// swap OREQS <=> NREQS
*newreqs = OREQS;
......
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