File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -140,14 +140,14 @@ static void io_buffer_unmap(struct io_ring_ctx *ctx, struct io_mapped_ubuf **slo
140
140
* slot = NULL ;
141
141
}
142
142
143
- static void io_rsrc_put_work (struct io_rsrc_data * rsrc_data ,
144
- struct io_rsrc_put * prsrc )
143
+ static void io_rsrc_put_work (struct io_rsrc_node * node )
145
144
{
146
- struct io_ring_ctx * ctx = rsrc_data -> ctx ;
145
+ struct io_rsrc_data * data = node -> rsrc_data ;
146
+ struct io_rsrc_put * prsrc = & node -> item ;
147
147
148
148
if (prsrc -> tag )
149
- io_post_aux_cqe (ctx , prsrc -> tag , 0 , 0 );
150
- rsrc_data -> do_put (ctx , prsrc );
149
+ io_post_aux_cqe (data -> ctx , prsrc -> tag , 0 , 0 );
150
+ data -> do_put (data -> ctx , prsrc );
151
151
}
152
152
153
153
void io_rsrc_node_destroy (struct io_ring_ctx * ctx , struct io_rsrc_node * node )
@@ -170,7 +170,7 @@ void io_rsrc_node_ref_zero(struct io_rsrc_node *node)
170
170
list_del (& node -> node );
171
171
172
172
if (likely (!node -> empty ))
173
- io_rsrc_put_work (node -> rsrc_data , & node -> item );
173
+ io_rsrc_put_work (node );
174
174
io_rsrc_node_destroy (ctx , node );
175
175
}
176
176
if (list_empty (& ctx -> rsrc_ref_list ) && unlikely (ctx -> rsrc_quiesce ))
You can’t perform that action at this time.
0 commit comments