Lines Matching defs:target_ctx
68 static inline bool io_msg_need_remote(struct io_ring_ctx *target_ctx)
70 return target_ctx->task_complete;
100 static int io_msg_data_remote(struct io_ring_ctx *target_ctx,
113 return io_msg_remote_post(target_ctx, target, msg->len, flags,
117 static int __io_msg_ring_data(struct io_ring_ctx *target_ctx,
127 if (target_ctx->flags & IORING_SETUP_R_DISABLED)
130 if (io_msg_need_remote(target_ctx))
131 return io_msg_data_remote(target_ctx, msg);
137 if (target_ctx->flags & IORING_SETUP_IOPOLL) {
138 if (unlikely(io_lock_external_ctx(target_ctx, issue_flags)))
141 if (io_post_aux_cqe(target_ctx, msg->user_data, msg->len, flags))
143 if (target_ctx->flags & IORING_SETUP_IOPOLL)
144 io_double_unlock_ctx(target_ctx);
150 struct io_ring_ctx *target_ctx = req->file->private_data;
153 return __io_msg_ring_data(target_ctx, msg, issue_flags);
178 struct io_ring_ctx *target_ctx = req->file->private_data;
183 if (unlikely(io_lock_external_ctx(target_ctx, issue_flags)))
186 ret = __io_fixed_fd_install(target_ctx, src_file, msg->dst_fd);
201 if (!io_post_aux_cqe(target_ctx, msg->user_data, ret, 0))
204 io_double_unlock_ctx(target_ctx);
239 struct io_ring_ctx *target_ctx = req->file->private_data;
245 if (target_ctx == ctx)
247 if (target_ctx->flags & IORING_SETUP_R_DISABLED)
255 if (io_msg_need_remote(target_ctx))