commit | 89b5066ea1d96b321c0743259169c599d3f4f969 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Apr 01 15:43:50 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Apr 11 19:30:34 2021 -0600 |
tree | 57f6051e551d687a2d4dea7b5fec5c5cd074846a | |
parent | 215c39026023dbfb4026b670c318371252be909f [diff] |
io_uring: combine lock/unlock sections on exit io_ring_exit_work() already does uring_lock lock/unlock, no need to repeat it for lock waiting trick in io_ring_ctx_free(). Move the waiting with comments and spinlocking into io_ring_exit_work. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/a8ae0589b0ea64ad4791e2c282e4e9b713dd7024.1617287883.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>