]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: cleanup personalities under uring_lock
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:36 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commit6c7a6288545a41b70ec9851d10512bcd5e01c085
tree6654b2ffb8127857e1df30a751333fcd8f9e3772
parenteb9e2d51ad59e1231c6375bfdd95ab16304a1088
io_uring: cleanup personalities under uring_lock

personality_idr is usually synchronised by uring_lock, the exception
would be removing personalities in io_ring_ctx_wait_and_kill(), which
is legit as refs are killed by that point but still would be more
resilient to do it under the lock.

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