linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Initial NFS client support for RWF_DONTCACHE
@ 2025-08-12 21:40 Trond Myklebust
  2025-08-12 21:40 ` [PATCH v2 1/2] filemap: Add a helper for filesystems implementing dropbehind Trond Myklebust
  2025-08-12 21:40 ` [PATCH v2 2/2] NFS: Enable the RWF_DONTCACHE flag for the NFS client Trond Myklebust
  0 siblings, 2 replies; 3+ messages in thread
From: Trond Myklebust @ 2025-08-12 21:40 UTC (permalink / raw)
  To: linux-nfs; +Cc: linux-fsdevel, Mike Snitzer

From: Trond Myklebust <trond.myklebust@hammerspace.com>

The following patch set attempts to add support for the RWF_DONTCACHE
flag in preadv2() and pwritev2() on NFS filesystems.

The main issue is allowing support on 2 stage writes (i.e. unstable
WRITE followed by a COMMIT) since those don't follow the current
assumption that the 'dropbehind' flag can be fulfilled as soon as the
writeback lock is dropped.

v2:
 - Make use of the new iocb parameter for nfs_write_begin()

Trond Myklebust (2):
  filemap: Add a helper for filesystems implementing dropbehind
  NFS: Enable the RWF_DONTCACHE flag for the NFS client

 fs/nfs/file.c            |  7 +++----
 fs/nfs/nfs4file.c        |  2 ++
 fs/nfs/write.c           | 12 +++++++++++-
 include/linux/nfs_page.h |  1 +
 include/linux/pagemap.h  |  1 +
 mm/filemap.c             | 16 ++++++++++++++++
 6 files changed, 34 insertions(+), 5 deletions(-)

-- 
2.50.1


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 21:40 [PATCH v2 0/2] Initial NFS client support for RWF_DONTCACHE Trond Myklebust
2025-08-12 21:40 ` [PATCH v2 1/2] filemap: Add a helper for filesystems implementing dropbehind Trond Myklebust
2025-08-12 21:40 ` [PATCH v2 2/2] NFS: Enable the RWF_DONTCACHE flag for the NFS client Trond Myklebust

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).