]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.2: Serialise O_DIRECT i/o and clone range
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 14:40:24 +0000 (10:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:32:02 +0000 (16:32 +0200)
commit9f2fdb18d0bf7b3c092d0cca7fd9942630ba047a
treeecf14adb754ac310502cd088dd17890861069027
parent4089fd70a508f1b6483cfbe5a7f02e050cb87c7e
NFSv4.2: Serialise O_DIRECT i/o and clone range

[ Upstream commit c80ebeba1198eac8811ab0dba36ecc13d51e4438 ]

Ensure that all O_DIRECT reads and writes complete before cloning a file
range, so that both the source and destination are up to date.

Fixes: a5864c999de6 ("NFS: Do not serialise O_DIRECT reads and writes")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4file.c