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>
Mon, 1 Mar 2021 17:10:31 +0000 (10:10 -0700)
commitc6e7fd3f49607724749b42c226dadff9f8093e84
tree39e11c4adddb0a552f118e0741a909a624887dc1
parent0176d1b92372c39826dd0832982ae1c148a83657
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