2021-09-08 19:19:25

by Jens Axboe

[permalink] [raw]
Subject: Re: [PATCH v2] /dev/mem: nowait zero/null ops

On 9/8/21 1:10 PM, Pavel Begunkov wrote:
> Make read_iter_zero() to honor IOCB_NOWAIT, so /dev/zero can be
> advertised as FMODE_NOWAIT. It's useful for io_uring, which needs it to
> apply certain optimisations when doing I/O against the device.
>
> Set FMODE_NOWAIT for /dev/null as well, it never waits and therefore
> trivially meets the criteria.

Reviewed-by: Jens Axboe <[email protected]>

--
Jens Axboe