Re: [PATCH v3] eventfd: convert to f_op->read_iter()

2020-05-01 Thread Jens Axboe
On 5/1/20 11:53 AM, Jens Axboe wrote: > 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

[PATCH v3] eventfd: convert to f_op->read_iter()

2020-05-01 Thread Jens Axboe
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.