]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring: clean up local tw add-wait sync
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 17 Jan 2024 00:57:27 +0000 (00:57 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Jan 2024 16:45:24 +0000 (09:45 -0700)
commitd381099f980b5f6c3c7e150baf13b0aaefc66c29
treec53607ec46b10a246c94519271b04f557fb919bf
parentdc12d1799ce710fd90abbe0ced71e7e1ae0894fc
io_uring: clean up local tw add-wait sync

Kill a smp_mb__after_atomic() right before wake_up, it's useless, and
add a comment explaining implicit barriers from cmpxchg and
synchronsation around ->cq_wait_nr with the waiter.

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