File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,8 @@ void __io_commit_cqring_flush(struct io_ring_ctx *ctx)
582
582
io_eventfd_flush_signal (ctx );
583
583
}
584
584
585
- void io_cq_unlock_post (struct io_ring_ctx * ctx )
585
+ /* keep it inlined for io_submit_flush_completions() */
586
+ static inline void io_cq_unlock_post_inline (struct io_ring_ctx * ctx )
586
587
__releases (ctx - > completion_lock )
587
588
{
588
589
io_commit_cqring (ctx );
@@ -592,6 +593,12 @@ void io_cq_unlock_post(struct io_ring_ctx *ctx)
592
593
io_cqring_wake (ctx );
593
594
}
594
595
596
+ void io_cq_unlock_post (struct io_ring_ctx * ctx )
597
+ __releases (ctx - > completion_lock )
598
+ {
599
+ io_cq_unlock_post_inline (ctx );
600
+ }
601
+
595
602
/* Returns true if there are no backlogged entries after the flush */
596
603
static bool __io_cqring_overflow_flush (struct io_ring_ctx * ctx , bool force )
597
604
{
@@ -1389,7 +1396,7 @@ static void __io_submit_flush_completions(struct io_ring_ctx *ctx)
1389
1396
if (!(req -> flags & REQ_F_CQE_SKIP ))
1390
1397
__io_fill_cqe_req (ctx , req );
1391
1398
}
1392
- io_cq_unlock_post (ctx );
1399
+ io_cq_unlock_post_inline (ctx );
1393
1400
1394
1401
if (!wq_list_empty (& ctx -> submit_state .compl_reqs )) {
1395
1402
io_free_batch_list (ctx , state -> compl_reqs .first );
You can’t perform that action at this time.
0 commit comments