io_uring: kill io_cq_unlock()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 23 Jun 2023 11:23:27 +0000 (12:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2023 14:19:39 +0000 (08:19 -0600)
commitf432b76bcc93f36edb3d371f7b8d7881261dd6e7
treebceda916d8409a203f3cad2afca6a44fb575308b
parent91c7884ac9a92ffbf78af7fc89603daf24f448a9
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>
io_uring/io_uring.c