Commit f432b76
io_uring: kill io_cq_unlock()
We're abusing ->completion_lock helpers. io_cq_unlock() neither
locking conditionally nor doing CQE flushing, which means that callers
must have some side reason of taking the lock and should do it directly.
Open code io_cq_unlock() into io_cqring_overflow_kill() and clean it up.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/7dabb36856db2b562e78780480396c52c29b2bf4.1687518903.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 91c7884 commit f432b76
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 647 | | |
654 | 648 | | |
655 | 649 | | |
| |||
694 | 688 | | |
695 | 689 | | |
696 | 690 | | |
697 | | - | |
| 691 | + | |
698 | 692 | | |
699 | 693 | | |
700 | | - | |
| 694 | + | |
701 | 695 | | |
702 | 696 | | |
703 | 697 | | |
| |||
0 commit comments