Lines Matching defs:src_ctx
1160 static int io_clone_buffers(struct io_ring_ctx *ctx, struct io_ring_ctx *src_ctx,
1168 lockdep_assert_held(&src_ctx->uring_lock);
1174 if (ctx->user != src_ctx->user || ctx->mm_account != src_ctx->mm_account)
1184 nbufs = src_ctx->buf_table.nr;
1211 nbufs = src_ctx->buf_table.nr;
1231 src_node = io_rsrc_node_lookup(&src_ctx->buf_table, i);
1280 struct io_ring_ctx *src_ctx;
1299 src_ctx = file->private_data;
1300 if (src_ctx != ctx) {
1302 lock_two_rings(ctx, src_ctx);
1304 if (src_ctx->submitter_task &&
1305 src_ctx->submitter_task != current) {
1311 ret = io_clone_buffers(ctx, src_ctx, &buf);
1314 if (src_ctx != ctx)
1315 mutex_unlock(&src_ctx->uring_lock);