• Home
  • Raw
  • Download

Lines Matching refs:rb

2349 static inline void io_init_req_batch(struct req_batch *rb)  in io_init_req_batch()  argument
2351 rb->task_refs = 0; in io_init_req_batch()
2352 rb->ctx_refs = 0; in io_init_req_batch()
2353 rb->task = NULL; in io_init_req_batch()
2357 struct req_batch *rb) in io_req_free_batch_finish() argument
2359 if (rb->ctx_refs) in io_req_free_batch_finish()
2360 percpu_ref_put_many(&ctx->refs, rb->ctx_refs); in io_req_free_batch_finish()
2361 if (rb->task) in io_req_free_batch_finish()
2362 io_put_task(rb->task, rb->task_refs); in io_req_free_batch_finish()
2365 static void io_req_free_batch(struct req_batch *rb, struct io_kiocb *req, in io_req_free_batch() argument
2371 if (req->task != rb->task) { in io_req_free_batch()
2372 if (rb->task) in io_req_free_batch()
2373 io_put_task(rb->task, rb->task_refs); in io_req_free_batch()
2374 rb->task = req->task; in io_req_free_batch()
2375 rb->task_refs = 0; in io_req_free_batch()
2377 rb->task_refs++; in io_req_free_batch()
2378 rb->ctx_refs++; in io_req_free_batch()
2391 struct req_batch rb; in io_submit_flush_completions() local
2404 io_init_req_batch(&rb); in io_submit_flush_completions()
2409 io_req_free_batch(&rb, req, &ctx->submit_state); in io_submit_flush_completions()
2412 io_req_free_batch_finish(ctx, &rb); in io_submit_flush_completions()
2507 struct req_batch rb; in io_iopoll_complete() local
2513 io_init_req_batch(&rb); in io_iopoll_complete()
2536 io_req_free_batch(&rb, req, &ctx->submit_state); in io_iopoll_complete()
2546 io_req_free_batch_finish(ctx, &rb); in io_iopoll_complete()