linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 00/11] NFS DIRECT: align misaligned DIO for LOCALIO
@ 2025-08-05 23:20 Mike Snitzer
  2025-08-05 23:20 ` [PATCH v7 01/11] NFS/localio: nfs_close_local_fh() fix check for file closed Mike Snitzer
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Mike Snitzer @ 2025-08-05 23:20 UTC (permalink / raw)
  To: Trond Myklebust, Anna Schumaker; +Cc: linux-nfs

Hi,

NFS and LOCALIO in particular benefit from avoiding the page cache for
workloads that have a working set that is significantly larger than
available system memory. Enter: NFS DIRECT, which makes it possible to
always enable LOCALIO to use O_DIRECT even if the IO is not
DIO-aligned.

Changes since v6:
- Include Trond's 3 LOCALIO fixes that seem to have been forgotten;
  not related to rest of this patchset other than LOCALIO related.
- Patch 4 is a LOCALIO fix that should be picked up for 6.17 too.
- Update LOCALIO to not use iov_iter_is_aligned() because it will
  soon be removed upstream.
- Add basic STATX_DIOALIGN and STATX_DIO_READ_ALIGN support

Changes since v5:
- I split the NFS changes back out for v6 since the NFSD DIRECT
  changes have started to land in nfsd-testing
- With the benefit of having updated the NFSD trace points to use an
  EVENT_CLASS I have now updated NFS's equivalents to also use one.
- Updated patch headers.
- Patches 4 and 5, while not strictly needed, are "nice to have"
  because they evolve the NFS LOCALIO code to a better place.

All review appreciated, thanks.
Mike

Mike Snitzer (8):
  nfs/localio: avoid bouncing LOCALIO if nfs_client_is_local()
  nfs/localio: make trace_nfs_local_open_fh more useful
  nfs/localio: add nfsd_file_dio_alignment
  nfs/localio: refactor iocb initialization
  nfs/localio: fallback to NFSD for misaligned O_DIRECT READs
  nfs/direct: add misaligned READ handling
  nfs/direct: add misaligned WRITE handling
  NFS: add basic STATX_DIOALIGN and STATX_DIO_READ_ALIGN support

Trond Myklebust (3):
  NFS/localio: nfs_close_local_fh() fix check for file closed
  NFS/localio: nfs_uuid_put() fix races with nfs_open/close_local_fh()
  NFS/localio: nfs_uuid_put() fix the wake up after unlinking the file

 fs/nfs/direct.c            | 258 ++++++++++++++++++++++++++++++++++---
 fs/nfs/inode.c             |  15 +++
 fs/nfs/internal.h          |  17 ++-
 fs/nfs/localio.c           | 232 +++++++++++++++++++++------------
 fs/nfs/nfstrace.h          |  64 ++++++++-
 fs/nfs/pagelist.c          |  22 +++-
 fs/nfs_common/nfslocalio.c |  28 ++--
 fs/nfsd/localio.c          |  11 ++
 include/linux/nfs_page.h   |   1 +
 include/linux/nfslocalio.h |   2 +
 10 files changed, 529 insertions(+), 121 deletions(-)

-- 
2.44.0


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

end of thread, other threads:[~2025-08-05 23:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-05 23:20 [PATCH v7 00/11] NFS DIRECT: align misaligned DIO for LOCALIO Mike Snitzer
2025-08-05 23:20 ` [PATCH v7 01/11] NFS/localio: nfs_close_local_fh() fix check for file closed Mike Snitzer
2025-08-05 23:20 ` [PATCH v7 02/11] NFS/localio: nfs_uuid_put() fix races with nfs_open/close_local_fh() Mike Snitzer
2025-08-05 23:20 ` [PATCH v7 03/11] NFS/localio: nfs_uuid_put() fix the wake up after unlinking the file Mike Snitzer
2025-08-05 23:20 ` [PATCH v7 04/11] nfs/localio: avoid bouncing LOCALIO if nfs_client_is_local() Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 05/11] nfs/localio: make trace_nfs_local_open_fh more useful Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 06/11] nfs/localio: add nfsd_file_dio_alignment Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 07/11] nfs/localio: refactor iocb initialization Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 08/11] nfs/localio: fallback to NFSD for misaligned O_DIRECT READs Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 09/11] nfs/direct: add misaligned READ handling Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 10/11] nfs/direct: add misaligned WRITE handling Mike Snitzer
2025-08-05 23:21 ` [PATCH v7 11/11] NFS: add basic STATX_DIOALIGN and STATX_DIO_READ_ALIGN support Mike Snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).