Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit face1502 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd: use vfs_fsync_range(), not O_SYNC, for stable writes



NFSv4 shares the same struct file across multiple writes.  (And we'd
like NFSv2 and NFSv3 to do that as well some day.)

So setting O_SYNC on the struct file as a way to request a synchronous
write doesn't work.

Instead, do a vfs_fsync_range() in that case.

Reported-by: default avatarPeter Staubach <pstaubach@exagrid.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent fae5096a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment