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)
commit5c766a908d06e96d30e0ec2511a24fa311553d2c
tree6654b2ffb8127857e1df30a751333fcd8f9e3772
parentdc2a6e9aa9c349d76c318d22bbe26006fda1ce97
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