]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: get rid of atomic FAA for cq_timeouts
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 30 Jul 2020 15:43:50 +0000 (18:43 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jul 2020 17:42:21 +0000 (11:42 -0600)
commit69f7f0d56c7f564e30e29ff0f4a75f119caa806f
tree5671fb2c3e87266395efd49695e7af7456ac3aa1
parenteb52f95a46fb1799ed2e4d755a43c7d1ce0ad7ac
io_uring: get rid of atomic FAA for cq_timeouts

If ->cq_timeouts modifications are done under ->completion_lock, we
don't really nee any fetch-and-add and other complex atomics. Replace it
with non-atomic FAA, that saves an implicit full memory barrier.

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