io_uring: pass poll_find lock back
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jun 2022 09:22:03 +0000 (10:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Jun 2022 14:25:39 +0000 (08:25 -0600)
commit770bf23f19e790b9817fd994c38ed9dcb5e3457b
tree73c1e03bd89bdafb245450bc0d45715388f9acb0
parent87b40a3334785a2e68f413bb61d55278f7caa6af
io_uring: pass poll_find lock back

Instead of using implicit knowledge of what is locked or not after
io_poll_find() and co returns, pass back a pointer to the locked
bucket if any. If set the user must to unlock the spinlock.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/dae1dc5749aa34367812ecf62f82fd3f053aae44.1655371007.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c