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>
Thu, 21 Jul 2022 14:44:11 +0000 (08:44 -0600)
commitd777ab41d8c0b8c3d12ff28c7b6fc83c709cc3de
treeb9fd7ba3e553006f2190da0ff7a4dc426e8981af
parent70c18eb9532f48d466c9a73fd189f5e2383ab47c
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