File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -908,7 +908,7 @@ static void __io_flush_post_cqes(struct io_ring_ctx *ctx)
908
908
struct io_uring_cqe * cqe = & ctx -> completion_cqes [i ];
909
909
910
910
if (!io_fill_cqe_aux (ctx , cqe -> user_data , cqe -> res , cqe -> flags )) {
911
- if (ctx -> task_complete ) {
911
+ if (ctx -> lockless_cq ) {
912
912
spin_lock (& ctx -> completion_lock );
913
913
io_cqring_event_overflow (ctx , cqe -> user_data ,
914
914
cqe -> res , cqe -> flags , 0 , 0 );
@@ -1566,7 +1566,7 @@ void __io_submit_flush_completions(struct io_ring_ctx *ctx)
1566
1566
1567
1567
if (!(req -> flags & REQ_F_CQE_SKIP ) &&
1568
1568
unlikely (!io_fill_cqe_req (ctx , req ))) {
1569
- if (ctx -> task_complete ) {
1569
+ if (ctx -> lockless_cq ) {
1570
1570
spin_lock (& ctx -> completion_lock );
1571
1571
io_req_cqe_overflow (req );
1572
1572
spin_unlock (& ctx -> completion_lock );
You can’t perform that action at this time.
0 commit comments