Home
last modified time | relevance | path

Searched hist:"12 aceb89b0bce19eb89735f9de7a9983e4f0adae" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/
H A Deventfd.cdiff 12aceb89b0bce19eb89735f9de7a9983e4f0adae Fri May 01 14:11:09 CDT 2020 Jens Axboe <axboe@kernel.dk> 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>