io_uring: clean poll ->private flagging
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 23 Jun 2022 13:24:44 +0000 (14:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:46:49 +0000 (08:46 -0600)
commit5a382dda9bd7cfc8c1299466756dd77507735df1
treed6241c50cc25e41145b293cbbd6499f3e8ffe8fe
parentcd976e60ec51ba25c33fba7b1d026f6b6502fb44
io_uring: clean poll ->private flagging

We store a req pointer in wqe->private but also take one bit to mark
double poll entries. Replace macro helpers with inline functions for
better type checking and also name the double flag.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9a61240555c64ac0b7a9b0eb59a9efeb638a35a4.1655990418.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/poll.c