]> 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)
commita8754acf4af031d416533866304a09f6df55224a
tree5671fb2c3e87266395efd49695e7af7456ac3aa1
parent8a84969b7d0328821dbc4772ff3e38f302dbf027
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