Searched refs:reqs (Results 1 – 1 of 1) sorted by relevance
314 void *reqs[IO_REQ_CACHE_SIZE]; member1970 state->reqs[nr++] = req; in io_flush_cached_reqs()1971 if (nr == ARRAY_SIZE(state->reqs)) in io_flush_cached_reqs()1992 BUILD_BUG_ON(ARRAY_SIZE(state->reqs) < IO_REQ_ALLOC_BATCH); in io_alloc_req()1998 state->reqs); in io_alloc_req()2005 state->reqs[0] = kmem_cache_alloc(req_cachep, gfp); in io_alloc_req()2006 if (!state->reqs[0]) in io_alloc_req()2012 io_preinit_req(state->reqs[i], ctx); in io_alloc_req()2016 return state->reqs[state->free_reqs]; in io_alloc_req()2380 if (state->free_reqs != ARRAY_SIZE(state->reqs)) in io_req_free_batch()[all …]