mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
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 <behlendorf1@llnl.gov> Fixes #374.
This commit is contained in:
parent
e67329d8e0
commit
56c34bac44
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user