summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-12-11 17:13:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-12-11 17:13:35 +0000
commit7ab6bdd6717967e5932f09f7cca054dc6fd75486 (patch)
tree3338124b2bd1ca408eb8a6e9f30be5b4ca15559b /sys
parent379b4162590eb2b59d3e55fc11b7c64f247aa6f4 (diff)
Disable DIOCCACHESYNC code, which I believe does the opposite
and can cause pending IO's on wd(4) to be thrown away. Still trying to find a solution.
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index fb56e0de556..15c0722cd62 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.167 2017/12/11 05:27:40 deraadt Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.168 2017/12/11 17:13:34 deraadt Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -457,6 +457,7 @@ success:
fs->fs_flags &= ~FS_DOSOFTDEP;
}
ffs_sbupdate(ump, MNT_WAIT);
+#if 0
if (ronly) {
int force = 0;
@@ -467,6 +468,7 @@ success:
VOP_IOCTL(ump->um_devvp, DIOCCACHESYNC, &force,
FWRITE, FSCRED, p);
}
+#endif
}
return (0);