]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: check for need to re-wait in polled async handling
authorJens Axboe <axboe@kernel.dk>
Mon, 13 Apr 2020 17:09:12 +0000 (11:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 Apr 2020 17:09:12 +0000 (11:09 -0600)
commit74ce6ce43d4fc6ce15efb21378d9ef26125c298b
tree216ea232a9e67e8063b69c68b898ee45086f3abe
parent88357580854aab29d27e1a443575caaedd081612
io_uring: check for need to re-wait in polled async handling

We added this for just the regular poll requests in commit a6ba632d2c24
("io_uring: retry poll if we got woken with non-matching mask"), we
should do the same for the poll handler used pollable async requests.
Move the re-wait check and arm into a helper, and call it from
io_async_task_func() as well.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c