io_uring: always lock __io_cqring_overflow_flush
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 10 Apr 2024 01:26:54 +0000 (02:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Apr 2024 14:10:26 +0000 (08:10 -0600)
commit8d09a88ef9d3cb7d21d45c39b7b7c31298d23998
tree17b8ffd1386460decdad9238aa46959e88532e9b
parent408024b959275ba52c233c647901cacfc8d5a226
io_uring: always lock __io_cqring_overflow_flush

Conditional locking is never great, in case of
__io_cqring_overflow_flush(), which is a slow path, it's not justified.
Don't handle IOPOLL separately, always grab uring_lock for overflow
flushing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/162947df299aa12693ac4b305dacedab32ec7976.1712708261.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c