Lines Matching defs:locked

810 typedef void (*io_req_tw_func_t)(struct io_kiocb *req, bool *locked);
1129 static inline void io_tw_lock(struct io_ring_ctx *ctx, bool *locked)
1131 if (!*locked) {
1133 *locked = true;
1289 bool locked = false;
1293 req->io_task_work.func(req, &locked);
1295 if (locked) {
1473 static void io_queue_async_work(struct io_kiocb *req, bool *locked)
1480 locked = NULL;
1850 * If we're the last reference to this request, add to our locked
1955 * locked cache, grab the lock and move them over to our submission
2168 static void ctx_flush_and_put(struct io_ring_ctx *ctx, bool *locked)
2172 if (*locked) {
2176 *locked = false;
2183 bool locked = false;
2191 if (!tctx->task_list.first && locked && ctx->submit_state.compl_nr)
2209 ctx_flush_and_put(ctx, &locked);
2212 locked = mutex_trylock(&ctx->uring_lock);
2215 req->io_task_work.func(req, &locked);
2218 ctx_flush_and_put(ctx, &locked);
2225 ctx_flush_and_put(ctx, &locked);
2281 static void io_req_task_cancel(struct io_kiocb *req, bool *locked)
2286 io_tw_lock(ctx, locked);
2290 static void io_req_task_submit(struct io_kiocb *req, bool *locked)
2294 io_tw_lock(ctx, locked);
2335 static void io_free_req_work(struct io_kiocb *req, bool *locked)
2789 static void io_req_task_complete(struct io_kiocb *req, bool *locked)
2794 if (*locked) {
2807 static void io_req_rw_complete(struct io_kiocb *req, bool *locked)
2810 io_req_task_complete(req, locked);
5550 static void io_poll_task_func(struct io_kiocb *req, bool *locked)
5573 static void io_apoll_task_func(struct io_kiocb *req, bool *locked)
5582 io_tw_lock(req->ctx, locked);
5589 io_req_task_submit(req, locked);
6048 static void io_req_task_timeout(struct io_kiocb *req, bool *locked)
6999 static void io_req_task_link_timeout(struct io_kiocb *req, bool *locked)
10422 * memory (locked/pinned vm). It's not used for anything else.