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>
Mon, 25 Jul 2022 00:39:15 +0000 (18:39 -0600)
commit0638cd7be21221c7b583a4901e25e63d96112395
tree284eb4a34db8805ceb96399d3bd22251e2418fdb
parent78a861b9495920f8609dee5b670dacbff09d359f
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