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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 6 Sep 2025 20:51:25 +0000 (16:51 -0400)
commitc80ebeba1198eac8811ab0dba36ecc13d51e4438
treea0a993fff04026af29c5626bbbfcb1874c939913
parentb93128f29733af5d427a335978a19884c2c230e2
NFSv4.2: Serialise O_DIRECT i/o and clone range

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>
fs/nfs/nfs4file.c