File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -644,12 +644,6 @@ static inline void io_cq_lock(struct io_ring_ctx *ctx)
644
644
spin_lock (& ctx -> completion_lock );
645
645
}
646
646
647
- static inline void io_cq_unlock (struct io_ring_ctx * ctx )
648
- __releases (ctx - > completion_lock )
649
- {
650
- spin_unlock (& ctx -> completion_lock );
651
- }
652
-
653
647
/* keep it inlined for io_submit_flush_completions() */
654
648
static inline void __io_cq_unlock_post (struct io_ring_ctx * ctx )
655
649
__releases (ctx - > completion_lock )
@@ -694,10 +688,10 @@ static void io_cqring_overflow_kill(struct io_ring_ctx *ctx)
694
688
struct io_overflow_cqe * ocqe ;
695
689
LIST_HEAD (list );
696
690
697
- io_cq_lock ( ctx );
691
+ spin_lock ( & ctx -> completion_lock );
698
692
list_splice_init (& ctx -> cq_overflow_list , & list );
699
693
clear_bit (IO_CHECK_CQ_OVERFLOW_BIT , & ctx -> check_cq );
700
- io_cq_unlock ( ctx );
694
+ spin_unlock ( & ctx -> completion_lock );
701
695
702
696
while (!list_empty (& list )) {
703
697
ocqe = list_first_entry (& list , struct io_overflow_cqe , list );
You can’t perform that action at this time.
0 commit comments