]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Enable use of the RWF_DONTCACHE flag on the NFS client
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 16:48:16 +0000 (12:48 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 23 Sep 2025 17:29:50 +0000 (13:29 -0400)
commit902893e3907620153a17fb40834ab6fba9f83fab
treeca2acaa646a8ee86bc1a07a541d56e0ad55911a0
parent010054a530aa266ee1711dfbe23fc06b6eb0fa48
NFS: Enable use of the RWF_DONTCACHE flag on the NFS client

The NFS client needs to defer dropbehind until after any writes to the
folio have been persisted on the server. Since this may be a 2 step
process, use folio_end_writeback_no_dropbehind() to allow release of the
writeback flag, and then call folio_end_dropbehind() once the COMMIT is
done.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/file.c
fs/nfs/nfs4file.c
fs/nfs/write.c