Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147037008
D30610.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
D30610.id.diff
View Options
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1123,11 +1123,12 @@
ioflag |= IO_NDELAY;
if (fp->f_flag & O_DIRECT)
ioflag |= IO_DIRECT;
- if (fp->f_flag & O_FSYNC) {
- mp = atomic_load_ptr(&vp->v_mount);
- if (mp != NULL && mp->mnt_flag & MNT_SYNCHRONOUS)
- ioflag |= IO_SYNC;
- }
+
+ mp = atomic_load_ptr(&vp->v_mount);
+ if ((fp->f_flag & O_FSYNC) ||
+ (mp != NULL && (mp->mnt_flag & MNT_SYNCHRONOUS)))
+ ioflag |= IO_SYNC;
+
/*
* For O_DSYNC we set both IO_SYNC and IO_DATASYNC, so that VOP_WRITE()
* implementations that don't understand IO_DATASYNC fall back to full
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 8, 7:38 PM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29414886
Default Alt Text
D30610.id.diff (666 B)
Attached To
Mode
D30610: Revert vn_write behavior difference
Attached
Detach File
Event Timeline
Log In to Comment