linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Snitzer <snitzer@kernel.org>
To: Trond Myklebust <trond.myklebust@hammerspace.com>,
	Anna Schumaker <anna.schumaker@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH v6 0/7] NFS DIRECT: align misaligned DIO for LOCALIO
Date: Fri,  1 Aug 2025 13:10:42 -0400	[thread overview]
Message-ID: <20250801171049.94235-1-snitzer@kernel.org> (raw)

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 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 (7):
  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

 fs/nfs/direct.c            | 258 ++++++++++++++++++++++++++++++++++---
 fs/nfs/internal.h          |  17 ++-
 fs/nfs/localio.c           | 230 +++++++++++++++++++++------------
 fs/nfs/nfstrace.h          |  64 ++++++++-
 fs/nfs/pagelist.c          |  22 +++-
 fs/nfsd/localio.c          |  11 ++
 include/linux/nfs_page.h   |   1 +
 include/linux/nfslocalio.h |   2 +
 8 files changed, 496 insertions(+), 109 deletions(-)

-- 
2.44.0


             reply	other threads:[~2025-08-01 17:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-01 17:10 Mike Snitzer [this message]
2025-08-01 17:10 ` [PATCH v6 1/7] nfs/localio: avoid bouncing LOCALIO if nfs_client_is_local() Mike Snitzer
2025-08-01 17:10 ` [PATCH v6 2/7] nfs/localio: make trace_nfs_local_open_fh more useful Mike Snitzer
2025-08-01 17:10 ` [PATCH v6 3/7] nfs/localio: add nfsd_file_dio_alignment Mike Snitzer
2025-08-01 17:10 ` [PATCH v6 4/7] nfs/localio: refactor iocb initialization Mike Snitzer
2025-08-01 17:10 ` [PATCH v6 5/7] nfs/localio: fallback to NFSD for misaligned O_DIRECT READs Mike Snitzer
2025-08-01 17:10 ` [PATCH v6 6/7] nfs/direct: add misaligned READ handling Mike Snitzer
2025-08-01 17:10 ` [PATCH v6 7/7] nfs/direct: add misaligned WRITE handling Mike Snitzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250801171049.94235-1-snitzer@kernel.org \
    --to=snitzer@kernel.org \
    --cc=anna.schumaker@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).