Lines Matching refs:src_ctx
1159 static int io_clone_buffers(struct io_ring_ctx *ctx, struct io_ring_ctx *src_ctx,
1167 lockdep_assert_held(&src_ctx->uring_lock);
1173 if (ctx->user != src_ctx->user || ctx->mm_account != src_ctx->mm_account)
1183 nbufs = src_ctx->buf_table.nr;
1210 nbufs = src_ctx->buf_table.nr;
1230 src_node = io_rsrc_node_lookup(&src_ctx->buf_table, i);
1279 struct io_ring_ctx *src_ctx;
1298 src_ctx = file->private_data;
1299 if (src_ctx != ctx) {
1301 lock_two_rings(ctx, src_ctx);
1304 ret = io_clone_buffers(ctx, src_ctx, &buf);
1306 if (src_ctx != ctx)
1307 mutex_unlock(&src_ctx->uring_lock);