File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -631,12 +631,6 @@ static inline void __io_cq_lock(struct io_ring_ctx *ctx)
631
631
spin_lock (& ctx -> completion_lock );
632
632
}
633
633
634
- static inline void __io_cq_unlock (struct io_ring_ctx * ctx )
635
- {
636
- if (!ctx -> task_complete )
637
- spin_unlock (& ctx -> completion_lock );
638
- }
639
-
640
634
static inline void io_cq_lock (struct io_ring_ctx * ctx )
641
635
__acquires (ctx - > completion_lock )
642
636
{
@@ -647,7 +641,9 @@ static inline void io_cq_lock(struct io_ring_ctx *ctx)
647
641
static inline void __io_cq_unlock_post (struct io_ring_ctx * ctx )
648
642
{
649
643
io_commit_cqring (ctx );
650
- __io_cq_unlock (ctx );
644
+ if (!ctx -> task_complete )
645
+ spin_unlock (& ctx -> completion_lock );
646
+
651
647
io_commit_cqring_flush (ctx );
652
648
io_cqring_wake (ctx );
653
649
}
@@ -664,7 +660,7 @@ static void __io_cq_unlock_post_flush(struct io_ring_ctx *ctx)
664
660
*/
665
661
io_commit_cqring_flush (ctx );
666
662
} else {
667
- __io_cq_unlock ( ctx );
663
+ spin_unlock ( & ctx -> completion_lock );
668
664
io_commit_cqring_flush (ctx );
669
665
io_cqring_wake (ctx );
670
666
}
You can’t perform that action at this time.
0 commit comments