]> git.proxmox.com Git - mirror_zfs.git/commit
Honour sync=disabled when relinking tpmfiles
authorDeHackEd <DeHackEd@users.noreply.github.com>
Sun, 16 Feb 2020 20:44:08 +0000 (15:44 -0500)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2020 20:44:08 +0000 (12:44 -0800)
commitd09dc5980c3e4840352c3c7b575975cbb72e7270
treecc62025724d8a736b0ad9128d973b2d8431ebbbd
parentecbbdac799e0fd33f9d8b5fd6315008e3b4c9a50
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
module/os/linux/zfs/zfs_vnops.c