summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorEtienne Dechamps <[email protected]>2011-09-02 09:57:35 +0200
committerBrian Behlendorf <[email protected]>2012-02-07 16:23:06 -0800
commit56c34bac44d47898809c46db3e5444511bbe0ef6 (patch)
tree37809d69e0dd8a109718636eac891751c8bf63ce /module
parente67329d8e0befe79016bd3e4d52435552c554a52 (diff)
Support "sync=always" for ZVOLs.
Currently the "sync=always" property works for regular ZFS datasets, but not for ZVOLs. This patch remedies that. Signed-off-by: Brian Behlendorf <[email protected]> Fixes #374.
Diffstat (limited to 'module')
-rw-r--r--module/zfs/zvol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c
index a25fbbe5e..9dda04077 100644
--- a/module/zfs/zvol.c
+++ b/module/zfs/zvol.c
@@ -555,7 +555,7 @@ zvol_write(void *arg)
dmu_tx_commit(tx);
zfs_range_unlock(rl);
- if (rq_is_sync(req))
+ if (rq_is_sync(req) || zv->zv_objset->os_sync == ZFS_SYNC_ALWAYS)
zil_commit(zv->zv_zilog, ZVOL_OBJ);
blk_end_request(req, -error, size);