diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-05-01 21:11:09 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-07 04:33:43 +0200 |
commit | 12aceb89b0bce19eb89735f9de7a9983e4f0adae (patch) | |
tree | 4c16eb79da308c962eb7e586e741275d9085a3a7 /usr | |
parent | Linux 5.7-rc1 (diff) | |
download | linux-12aceb89b0bce19eb89735f9de7a9983e4f0adae.tar.xz linux-12aceb89b0bce19eb89735f9de7a9983e4f0adae.zip |
eventfd: convert to f_op->read_iter()
eventfd is using ->read() as it's file_operations read handler, but
this prevents passing in information about whether a given IO operation
is blocking or not. We can only use the file flags for that. To support
async (-EAGAIN/poll based) retries for io_uring, we need ->read_iter()
support. Convert eventfd to using ->read_iter().
With ->read_iter(), we can support IOCB_NOWAIT. Ensure the fd setup
is done such that we set file->f_mode with FMODE_NOWAIT.
[missing include added]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions