]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: combine lock/unlock sections on exit
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 1 Apr 2021 14:43:50 +0000 (15:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:34 +0000 (19:30 -0600)
commit0ad72b48df823bc1515d87f6f1e4b6af9aab17dd
tree57f6051e551d687a2d4dea7b5fec5c5cd074846a
parent0a702006a0b29c13fe50c3198b367d09e402aae4
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>
fs/io_uring.c