]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06044cc151cc037cd2504d2b20854daeefc40306
tree284eb4a34db8805ceb96399d3bd22251e2418fdb
parenta1459327b574a108a6a4af077627e1d5c0999e2e
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