Re: [PATCH 1/5] io_uring/zcrx: notify user when out of buffers

From: Pavel Begunkov

Date: Tue May 12 2026 - 07:00:46 EST


On 4/22/26 12:25, Clément Léger wrote:
From: Pavel Begunkov <asml.silence@xxxxxxxxx>
...
+static void zcrx_notif_tw(struct io_tw_req tw_req, io_tw_token_t tw)
+{
+ struct io_kiocb *req = tw_req.req;
+ struct io_ring_ctx *ctx = req->ctx;
+
+ io_post_aux_cqe(ctx, req->cqe.user_data, req->cqe.res, 0);
+ percpu_ref_put(&ctx->refs);
+ kfree_rcu(req, rcu_head);
+}

Note to myself:

io_poison_req(req);
kmem_cache_free(req_cachep, req);

--
Pavel Begunkov