Linux NFS development
 help / color / mirror / Atom feed
* [PATCH v2 0/4] NFSD direct I/O read
@ 2025-09-17 14:31 Chuck Lever
  2025-09-17 14:31 ` [PATCH v2 1/4] NFSD: Add array bounds-checking in nfsd_iter_read() Chuck Lever
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Chuck Lever @ 2025-09-17 14:31 UTC (permalink / raw)
  To: neil, jlayton, okorniev, dai.ngo, tom; +Cc: linux-nfs

The goal is to get the experimental read-side direct I/O
implementation merged sooner. We are still thinking through the
implications of mixing direct and buffered I/O when handling an
NFS WRITE that does not meet the dio alignment requirements.

Changes since v1:
* Harden the loop that constructs the I/O bvec
* Address review comments

Changes from Mike's v9:
* The LOC introduced by the feature has been reduced considerably.
* A new trace point in nfsd_file_getattr reports each file's dio
  alignment parameters when it is opened.
* The direct I/O path has been taken out-of-line so that it may
  continue to be modified and optimized without perturbing the more
  commonly used I/O paths.
* When an exported file system does not implement direct I/O, more
  commonly used modes are employed instead to avoid returning
  EOPNOTSUPP unexpectedly.
* When NFSD_IO_DIRECT is selected, NFS READs of all sizes use direct
  I/O to provide better experimental data about small I/O workloads.

---

Chuck Lever (2):
      NFSD: Add array bounds-checking in nfsd_iter_read()
      NFSD: Implement NFSD_IO_DIRECT for NFS READ

Mike Snitzer (2):
      NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support
      NFSD: pass nfsd_file to nfsd_iter_read()


 fs/nfsd/debugfs.c       |   2 +
 fs/nfsd/filecache.c     |  34 ++++++++++++++
 fs/nfsd/filecache.h     |   4 ++
 fs/nfsd/nfs4xdr.c       |   8 ++--
 fs/nfsd/nfsd.h          |   1 +
 fs/nfsd/nfsfh.c         |   4 ++
 fs/nfsd/trace.h         |  28 +++++++++++
 fs/nfsd/vfs.c           | 100 ++++++++++++++++++++++++++++++++++++----
 fs/nfsd/vfs.h           |   2 +-
 include/trace/misc/fs.h |  22 +++++++++
 10 files changed, 192 insertions(+), 13 deletions(-)

--
Chuck Lever


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-09-18 19:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-17 14:31 [PATCH v2 0/4] NFSD direct I/O read Chuck Lever
2025-09-17 14:31 ` [PATCH v2 1/4] NFSD: Add array bounds-checking in nfsd_iter_read() Chuck Lever
2025-09-17 17:51   ` Mike Snitzer
2025-09-17 14:31 ` [PATCH v2 2/4] NFSD: filecache: add STATX_DIOALIGN and STATX_DIO_READ_ALIGN support Chuck Lever
2025-09-17 14:31 ` [PATCH v2 3/4] NFSD: pass nfsd_file to nfsd_iter_read() Chuck Lever
2025-09-17 14:32 ` [PATCH v2 4/4] NFSD: Implement NFSD_IO_DIRECT for NFS READ Chuck Lever
2025-09-17 23:29   ` NeilBrown
2025-09-18 14:50     ` Mike Snitzer
2025-09-18 15:20       ` Mike Snitzer
2025-09-18 18:42     ` Chuck Lever
2025-09-18 19:01       ` Mike Snitzer
2025-09-18 16:29   ` Mike Snitzer
2025-09-18 18:27     ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox