diff options
author | 2022-04-20 19:27:41 -0600 | |
---|---|---|
committer | 2022-04-24 18:18:18 -0600 | |
commit | 10c873334febaeea9aa0c25c10b5ac0951b77a5f (patch) | |
tree | 1d0770df86158bf28ca69ff21fc08b813f4f2ab8 /include/linux/task_work.h | |
parent | io_uring: support MSG_WAITALL for IORING_OP_SEND(MSG) (diff) | |
download | linux-rng-10c873334febaeea9aa0c25c10b5ac0951b77a5f.tar.xz linux-rng-10c873334febaeea9aa0c25c10b5ac0951b77a5f.zip |
io_uring: allow re-poll if we made progress
We currently check REQ_F_POLLED before arming async poll for a
notification to retry. If it's set, then we don't allow poll and will
punt to io-wq instead. This is done to prevent a situation where a buggy
driver will repeatedly return that there's space/data available yet we
get -EAGAIN.
However, if we already transferred data, then it should be safe to rely
on poll again. Gate the check on whether or not REQ_F_PARTIAL_IO is
also set.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/task_work.h')
0 files changed, 0 insertions, 0 deletions