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, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commit43b517fe9450881f2b15add3f5927d860bd678fa
tree43c8c5af0b31ef085ffbb60584291642c57e0de8
parentd314a8e7f425a7b865e0dc8d95312115994660f7
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