Lines Matching refs:reqs_available
88 unsigned reqs_available;
107 * For percpu reqs_available, number of slots we move to/from global
145 atomic_t reqs_available;
731 * overflow (reqs_available), and we also use percpu counters for this.
780 atomic_set(&ctx->reqs_available, ctx->nr_events - 1);
925 kcpu->reqs_available += nr;
927 while (kcpu->reqs_available >= ctx->req_batch * 2) {
928 kcpu->reqs_available -= ctx->req_batch;
929 atomic_add(ctx->req_batch, &ctx->reqs_available);
943 if (!kcpu->reqs_available) {
944 int old, avail = atomic_read(&ctx->reqs_available);
951 avail = atomic_cmpxchg(&ctx->reqs_available,
955 kcpu->reqs_available += ctx->req_batch;
959 kcpu->reqs_available--;
966 * Updates the reqs_available reference counts used for tracking the
968 * from aio_complete() (to optimistically update reqs_available) or
998 * Called to refill reqs_available when aio_get_req() encounters an