io_uring: replace cmpxchg in fallback with xchg
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:04:54 +0000 (22:04 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Mar 2021 13:37:14 +0000 (06:37 -0700)
commit28c4721b80a702462fb77373c23428ee698fa5dd
tree52545987ce2510ac64d919ccae9bba6e0c051031
parent2c32395d8111037ae2cb8cab883e80bcdbb70713
io_uring: replace cmpxchg in fallback with xchg

io_run_ctx_fallback() can use xchg() instead of cmpxchg(). It's simpler
and faster.

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