File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2560,18 +2560,14 @@ static int io_eventfd_unregister(struct io_ring_ctx *ctx)
2560
2560
2561
2561
static void io_req_caches_free (struct io_ring_ctx * ctx )
2562
2562
{
2563
- struct io_submit_state * state = & ctx -> submit_state ;
2564
2563
int nr = 0 ;
2565
2564
2566
2565
mutex_lock (& ctx -> uring_lock );
2567
- io_flush_cached_locked_reqs (ctx , state );
2566
+ io_flush_cached_locked_reqs (ctx , & ctx -> submit_state );
2568
2567
2569
2568
while (!io_req_cache_empty (ctx )) {
2570
- struct io_wq_work_node * node ;
2571
- struct io_kiocb * req ;
2569
+ struct io_kiocb * req = io_alloc_req (ctx );
2572
2570
2573
- node = wq_stack_extract (& state -> free_list );
2574
- req = container_of (node , struct io_kiocb , comp_list );
2575
2571
kmem_cache_free (req_cachep , req );
2576
2572
nr ++ ;
2577
2573
}
You can’t perform that action at this time.
0 commit comments