diff options
| author | 2021-09-08 20:10:38 +0100 | |
|---|---|---|
| committer | 2021-09-14 10:46:19 +0200 | |
| commit | e5f71d60ff167d0caa491659d65551a55ea6b406 (patch) | |
| tree | 3a6f7e0b1524aa1e77b4134b12104472a12aa4f1 /drivers/misc | |
| parent | Linux 5.15-rc1 (diff) | |
| download | linux-dev-e5f71d60ff167d0caa491659d65551a55ea6b406.tar.xz linux-dev-e5f71d60ff167d0caa491659d65551a55ea6b406.zip | |
/dev/mem: nowait zero/null ops
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@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f11090f97ddc2b2ce49ea1211258658ddfbc5563.1631127867.git.asml.silence@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions
