io_uring: simplify fallback execution
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 16 Jan 2023 16:48:59 +0000 (16:48 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commit31f084b7b0288fd51740b1e1efdb0ff61fb81e48
tree3cb8e1ef95f98eb8c0b70fecefd1716f8320e5d2
parent89800a2dd570919bfe01ced90c80e3b472d1c723
io_uring: simplify fallback execution

Lock the ring with uring_lock in io_fallback_req_func(), which should
make it a bit safer and easier. With that we also don't need refs
pinning as io_ring_exit_work() will wait until uring_lock is freed.

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