]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.2: Serialise O_DIRECT i/o and copy range
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 14:54:13 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:35:44 +0000 (16:35 +0200)
commite1651ba799d4bd7c68e60a07fe2cdd4220377029
tree43128151f75f663f4769d466ab0f4eb7187960f7
parentfc0e6342ad8a16d4ab2a42693c0dadac82ff6662
NFSv4.2: Serialise O_DIRECT i/o and copy range

[ Upstream commit ca247c89900ae90207f4d321e260cd93b7c7d104 ]

Ensure that all O_DIRECT reads and writes complete before copying a file
range, so that the destination is 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/nfs42proc.c