io_uring: use type appropriate io_kiocb handler for double poll
authorJens Axboe <axboe@kernel.dk>
Sun, 25 Oct 2020 19:53:26 +0000 (13:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Oct 2020 19:53:26 +0000 (13:53 -0600)
commitc8b5e2600a2cfa1cdfbecf151afd67aee227381d
tree7c9c0042d19ecbfab47c04ac0e095bd202d55838
parent0d63c148d6d9ac57c124b618f66269bb4558553b
io_uring: use type appropriate io_kiocb handler for double poll

io_poll_double_wake() is called for both request types - both pure poll
requests, and internal polls. This means that we should be using the
right handler based on the request type. Use the one that the original
caller already assigned for the waitqueue handling, that will always
match the correct type.

Cc: stable@vger.kernel.org # v5.8+
Reported-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c