From: deraadt Date: Mon, 11 Dec 2017 17:13:34 +0000 (+0000) Subject: Disable DIOCCACHESYNC code, which I believe does the opposite X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eb0574e82a271fada347a3660394436adf1a858d;p=openbsd 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. --- 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);