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

From: Jens Axboe
Date: Wed Sep 08 2021 - 15:15:32 EST


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 <axboe@xxxxxxxxx>

--
Jens Axboe