io_uring: remove ctx->refs pinning on enter
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 25 Jun 2022 10:53:02 +0000 (11:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:16 +0000 (18:39 -0600)
commitfbb8bb02911790147ea936f3b1c5ceb1be54bf34
treec183e2460bc828f7fa3db1966f25f19443204ed0
parent3273c4407acd4348b1531e1f860fbf1da942893b
io_uring: remove ctx->refs pinning on enter

io_uring_enter() takes ctx->refs, which was previously preventing racing
with register quiesce. However, as register now doesn't touch the refs,
we can freely kill extra ctx pinning and rely on the fact that we're
holding a file reference preventing the ring from being destroyed.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a11c57ad33a1be53541fce90669c1b79cf4d8940.1656153286.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c