File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2804,15 +2804,12 @@ static __cold void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx)
2804
2804
io_poll_remove_all (ctx , NULL , true);
2805
2805
mutex_unlock (& ctx -> uring_lock );
2806
2806
2807
- /* failed during ring init, it couldn't have issued any requests */
2808
- if (ctx -> rings ) {
2807
+ /*
2808
+ * If we failed setting up the ctx, we might not have any rings
2809
+ * and therefore did not submit any requests
2810
+ */
2811
+ if (ctx -> rings )
2809
2812
io_kill_timeouts (ctx , NULL , true);
2810
- /* if we failed setting up the ctx, we might not have any rings */
2811
- io_iopoll_try_reap_events (ctx );
2812
- /* drop cached put refs after potentially doing completions */
2813
- if (current -> io_uring )
2814
- io_uring_drop_tctx_refs (current );
2815
- }
2816
2813
2817
2814
INIT_WORK (& ctx -> exit_work , io_ring_exit_work );
2818
2815
/*
You can’t perform that action at this time.
0 commit comments