Lines Matching refs:reqs
314 void *reqs[IO_REQ_CACHE_SIZE]; member
1970 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()
2381 state->reqs[state->free_reqs++] = req; in io_req_free_batch()
9527 kmem_cache_free_bulk(req_cachep, state->free_reqs, state->reqs); in io_req_caches_free()