Lines Matching refs:reqs_available
87 unsigned reqs_available;
106 * For percpu reqs_available, number of slots we move to/from global
144 atomic_t reqs_available;
753 * overflow (reqs_available), and we also use percpu counters for this.
802 atomic_set(&ctx->reqs_available, ctx->nr_events - 1);
947 kcpu->reqs_available += nr;
949 while (kcpu->reqs_available >= ctx->req_batch * 2) {
950 kcpu->reqs_available -= ctx->req_batch;
951 atomic_add(ctx->req_batch, &ctx->reqs_available);
965 if (!kcpu->reqs_available) {
966 int avail = atomic_read(&ctx->reqs_available);
971 } while (!atomic_try_cmpxchg(&ctx->reqs_available,
974 kcpu->reqs_available += ctx->req_batch;
978 kcpu->reqs_available--;
985 * Updates the reqs_available reference counts used for tracking the
987 * from aio_complete() (to optimistically update reqs_available) or
1017 * Called to refill reqs_available when aio_get_req() encounters an