]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
io_uring: remove racy overflow list fast checks
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 17 Dec 2020 00:24:36 +0000 (00:24 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Dec 2020 15:40:52 +0000 (08:40 -0700)
commit9cd2be519d05ee78876d55e8e902b7125f78b74f
tree168cee3fc63b02695c84843c0ff24b8f82cfcdee
parentcda286f0715c82f8117e166afd42cca068876dde
io_uring: remove racy overflow list fast checks

list_empty_careful() is not racy only if some conditions are met, i.e.
no re-adds after del_init. io_cqring_overflow_flush() does list_move(),
so it's actually racy.

Remove those checks, we have ->cq_check_overflow for the fast path.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c