]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add REQ_F_APOLL_MULTISHOT for requests
authorHao Xu <howeyxu@tencent.com>
Sat, 14 May 2022 14:20:44 +0000 (22:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 May 2022 14:34:22 +0000 (08:34 -0600)
commitd9f0892c8c86a1ac92d6dc6c4ace02e04fbb98b7
tree38e7f15ca0225156b8749e2c829470fc7c7a2205
parentf673c3117f662c048a3dea528fef7b8b72163c86
io_uring: add REQ_F_APOLL_MULTISHOT for requests

Add a flag to indicate multishot mode for fast poll. currently only
accept use it, but there may be more operations leveraging it in the
future. Also add a mask IO_APOLL_MULTI_POLLED which stands for
REQ_F_APOLL_MULTI | REQ_F_POLLED, to make the code short and cleaner.

Signed-off-by: Hao Xu <howeyxu@tencent.com>
Link: https://lore.kernel.org/r/20220514142046.58072-3-haoxu.linux@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c