]> git.proxmox.com Git - mirror_zfs.git/commit
Fix 2 small bugs with cached dsl_scan_phys_t
authorTom Caputi <tcaputi@datto.com>
Tue, 23 Oct 2018 19:17:18 +0000 (15:17 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 24 Oct 2018 21:37:41 +0000 (14:37 -0700)
commit8cb119e3dc0ac6c90b1517fbadc021b7e9741fc6
tree2afb33f24f7bb5f1f57675fd0bcad8405bcbc56a
parent7d658d29cf4b6b037156dfc29d298a7abb8afc86
Fix 2 small bugs with cached dsl_scan_phys_t

This patch corrects 2 small bugs where scn->scn_phys_cached was
not properly updated to match the primary copy when it needed to
be. The first resulted in the pause state not being properly
updated and the second resulted in the cached version being
completely zeroed even if the primary was not.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8010
module/zfs/dsl_scan.c