]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.2: Serialise O_DIRECT i/o and fallocate()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Sep 2025 16:11:17 +0000 (12:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:32:02 +0000 (16:32 +0200)
commit4089fd70a508f1b6483cfbe5a7f02e050cb87c7e
tree35d186c4f9fc14e8e8d1f72bed963e4a53f165ed
parent320a0954e2c8779cf2512dfc59b511b61f17d16b
NFSv4.2: Serialise O_DIRECT i/o and fallocate()

[ Upstream commit b93128f29733af5d427a335978a19884c2c230e2 ]

Ensure that all O_DIRECT reads and writes complete before calling
fallocate so that we don't race w.r.t. attribute updates.

Fixes: 99f237832243 ("NFSv4.2: Always flush out writes in nfs42_proc_fallocate()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs42proc.c