Merge branch 'read_iter' of git://git.kernel.dk/linux
authorChristian Brauner <brauner@kernel.org>
Thu, 11 Apr 2024 08:06:08 +0000 (10:06 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 11 Apr 2024 08:06:08 +0000 (10:06 +0200)
commit3a93daea2fb27fcefa85662654ba583a5d0c7231
tree4af6446af26ebfe51fe2da7cc22a7fc36fafcc1f
parentfec50db7033ea478773b159e0e2efb135270e3b7
parentfbe38120eb1dec94280d0381ce4aea52c44367b1
Merge branch 'read_iter' of git://git.kernel.dk/linux

Pull read_iter updates from Jens Axboe:

There are still a few users of fops->read() in the core parts of the
fs stack. Which is a shame, since it'd be nice to get rid of the
non-iterator parts of down the line, and reclaim that part of the
file_operations struct.

Outside of moving in that direction as a cleanup, using ->read_iter()
enables us to mark them with FMODE_NOWAIT. This is important for users
like io_uring, where per-IO nonblocking hints make a difference in how
efficiently IO can be done.

Those two things are my main motivation for starting this work, with
hopefully more to come down the line.

All patches have been booted and tested, and the corresponding test
cases from ltp have been run.

* 'read_iter' of git://git.kernel.dk/linux: (4 commits)
  signalfd: convert to ->read_iter()
  userfaultfd: convert to ->read_iter()
  timerfd: convert to ->read_iter()
  new helper: copy_to_iter_full()

Signed-off-by: Christian Brauner <brauner@kernel.org>