]> 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)
commit3a919027c5ee12be4112a1ef113902133263f3a3
tree38e7f15ca0225156b8749e2c829470fc7c7a2205
parent7ee1f1da0b25ce38ee6a3ad5ad64f0d14a0839d3
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