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>
Wed, 22 Jun 2022 17:31:22 +0000 (11:31 -0600)
commita843210c0eafcc40458cd1c5c92a92d392af17d1
treea6477e9dbe1b4002f69d6c65a4e8d48dc31bc0f1
parent160c4ea0047ce9faec8bad8904005e28f8a77640
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