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>
Mon, 25 Jul 2022 00:39:13 +0000 (18:39 -0600)
commit1ab1edb0a104dd683d83e7853aa5b624856f4127
tree6aa8ce39607bd76a3ab44e27e51637abd0d30869
parent38513c464d3d45b4088c82f6e42d9cdbc5ee57e6
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