Lines Matching refs:target_ctx
69 static inline bool io_msg_need_remote(struct io_ring_ctx *target_ctx)
71 if (!target_ctx->task_complete)
73 return current != target_ctx->submitter_task;
96 struct io_ring_ctx *target_ctx = req->file->private_data;
113 if (target_ctx->flags & IORING_SETUP_IOPOLL)
114 mutex_lock(&target_ctx->uring_lock);
115 if (!io_post_aux_cqe(target_ctx, msg->user_data, msg->len, flags))
117 if (target_ctx->flags & IORING_SETUP_IOPOLL)
118 mutex_unlock(&target_ctx->uring_lock);
128 struct io_ring_ctx *target_ctx = req->file->private_data;
137 if (target_ctx->flags & IORING_SETUP_R_DISABLED)
140 if (io_msg_need_remote(target_ctx))
147 if (target_ctx->flags & IORING_SETUP_IOPOLL) {
148 if (unlikely(io_double_lock_ctx(target_ctx, issue_flags)))
150 if (io_post_aux_cqe(target_ctx, msg->user_data, msg->len, flags))
152 io_double_unlock_ctx(target_ctx);
154 if (io_post_aux_cqe(target_ctx, msg->user_data, msg->len, flags))
180 struct io_ring_ctx *target_ctx = req->file->private_data;
185 if (unlikely(io_double_lock_ctx(target_ctx, issue_flags)))
188 ret = __io_fixed_fd_install(target_ctx, src_file, msg->dst_fd);
203 if (!io_post_aux_cqe(target_ctx, msg->user_data, ret, 0))
206 io_double_unlock_ctx(target_ctx);
225 struct io_ring_ctx *target_ctx = req->file->private_data;
232 if (target_ctx == ctx)
234 if (target_ctx->flags & IORING_SETUP_R_DISABLED)
244 if (io_msg_need_remote(target_ctx))