]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f2ea10679012a4a96bb5b03c7dc2c797a0517e6
tree216ea232a9e67e8063b69c68b898ee45086f3abe
parent4dd149aca61c6134decc8db0b81c62cf8c580fbb
io_uring: check for need to re-wait in polled async handling

We added this for just the regular poll requests in commit fdac8c79dec8
("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