mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
Honour sync=disabled when relinking tpmfiles
Unlinked files don't respect synchronous flush commands, but when they get relinked their state is unknown. Previously we force flushed all such files even when sync=disabled. Correct this case. Reviewed-by: Chunwei Chen <tuxoko@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: DHE <git@dehacked.net> Closes #10005
This commit is contained in:
parent
ecbbdac799
commit
d09dc5980c
@ -4431,7 +4431,7 @@ top:
|
||||
if (!is_tmpfile && zfsvfs->z_os->os_sync == ZFS_SYNC_ALWAYS)
|
||||
zil_commit(zilog, 0);
|
||||
|
||||
if (is_tmpfile)
|
||||
if (is_tmpfile && zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED)
|
||||
txg_wait_synced(dmu_objset_pool(zfsvfs->z_os), txg);
|
||||
|
||||
zfs_inode_update(tdzp);
|
||||
|
Loading…
Reference in New Issue
Block a user