]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: enable poll retry for any file with ->read_iter / ->write_iter
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Apr 2020 19:15:06 +0000 (13:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 May 2020 04:24:22 +0000 (22:24 -0600)
commitabfeb0cabb2f174085eff0987e9fa269058c0b9c
tree81768c80c5b085d1494d6e9e4680c30c6f83e3e4
parent396ee0f3d278ea74e7098dda9806a4b8f59d41b8
io_uring: enable poll retry for any file with ->read_iter / ->write_iter

We can have files like eventfd where it's perfectly fine to do poll
based retry on them, right now io_file_supports_async() doesn't take
that into account.

Pass in data direction and check the f_op instead of just always needing
an async worker.

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