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)
commit227685ebfaba0bc7e2ddc47cef4556050b6d7a8f
tree38e7f15ca0225156b8749e2c829470fc7c7a2205
parent390ed29b5e425ba00da2b6113b74a14949f71b02
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