File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2132,22 +2132,22 @@ static void io_submit_flush_completions(struct io_ring_ctx *ctx)
2132
2132
{
2133
2133
struct io_comp_state * cs = & ctx -> submit_state .comp ;
2134
2134
int i , nr = cs -> nr ;
2135
- struct io_kiocb * req ;
2136
2135
struct req_batch rb ;
2137
2136
2138
- io_init_req_batch (& rb );
2139
2137
spin_lock_irq (& ctx -> completion_lock );
2140
2138
for (i = 0 ; i < nr ; i ++ ) {
2141
- req = cs -> reqs [i ];
2139
+ struct io_kiocb * req = cs -> reqs [i ];
2140
+
2142
2141
__io_cqring_fill_event (ctx , req -> user_data , req -> result ,
2143
2142
req -> compl .cflags );
2144
2143
}
2145
2144
io_commit_cqring (ctx );
2146
2145
spin_unlock_irq (& ctx -> completion_lock );
2147
-
2148
2146
io_cqring_ev_posted (ctx );
2147
+
2148
+ io_init_req_batch (& rb );
2149
2149
for (i = 0 ; i < nr ; i ++ ) {
2150
- req = cs -> reqs [i ];
2150
+ struct io_kiocb * req = cs -> reqs [i ];
2151
2151
2152
2152
/* submission and completion refs */
2153
2153
if (req_ref_sub_and_test (req , 2 ))
You can’t perform that action at this time.
0 commit comments