On 12/01/2021 21:33, Bijan Mottahedeh wrote: > Apply fixed_rsrc functionality for fixed buffers support. > > Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@xxxxxxxxxx> > --- > fs/io_uring.c | 234 +++++++++++++++++++++++++++++++++++++++++++++++++--------- > 1 file changed, 198 insertions(+), 36 deletions(-) [...] > +static struct fixed_rsrc_ref_node *alloc_fixed_buf_ref_node( > + struct io_ring_ctx *ctx) > +{ > + struct fixed_rsrc_ref_node *ref_node; > + > + ref_node = alloc_fixed_rsrc_ref_node(ctx); if (!ref_node) return NULL; No need to resend yet, just we need to keep an eye on it. > + ref_node->rsrc_data = ctx->buf_data; > + ref_node->rsrc_put = io_ring_buf_put; > + return ref_node; > +} -- Pavel Begunkov