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)
commitaf197f50ac53fff1241598c73ca606754a3bb808
tree81768c80c5b085d1494d6e9e4680c30c6f83e3e4
parent5b0bbee4732cbd58aa98213d4c11a366356bba3d
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