summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHC <mmttdebbcc@yahoo.com>2014-05-15 00:58:11 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2014-05-19 20:30:48 +0000
commitf9a1ac4d59c2a7b0d0065eccd1d68fcc32541f5b (patch)
treebd741740ce725fe8b53f1be1b567bfe95d1c7f61
parent83021b47c2870c0ba948cbcfe08f41bd7730f5fb (diff)
-rw-r--r--module/zfs/vdev_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/zfs/vdev_file.c b/module/zfs/vdev_file.c
index 3305802241d7..8059cdea4400 100644
--- a/module/zfs/vdev_file.c
+++ b/module/zfs/vdev_file.c
@@ -176,6 +176,10 @@ vdev_file_io_start(zio_t *zio)
switch (zio->io_cmd) {
case DKIOCFLUSHWRITECACHE:
+
+ if (zfs_nocacheflush)
+ break;
+
zio->io_error = VOP_FSYNC(vf->vf_vnode, FSYNC | FDSYNC,
kcred, NULL);
break;