NFS: Serialise O_DIRECT i/o and truncate()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Sep 2025 16:06:23 +0000 (12:06 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 20:51:25 +0000 (16:51 -0400)
commit9eb90f435415c7da4800974ed943e39b5578ee7f
treef43a8f1c0c5b0693b22195f657a8d61490ca86c2
parentb2036bb65114c01caf4a1afe553026e081703c8c
NFS: Serialise O_DIRECT i/o and truncate()

Ensure that all O_DIRECT reads and writes are complete, and prevent the
initiation of new i/o until the setattr operation that will truncate the
file is complete.

Fixes: a5864c999de6 ("NFS: Do not serialise O_DIRECT reads and writes")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c
fs/nfs/internal.h
fs/nfs/io.c