HomeFreeBSD

Fix 2 small bugs with cached dsl_scan_phys_t

Description

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

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Oct 23 2018, 7:17 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 24 2018, 9:37 PM
Parents
rG7d658d29cf4b: Fix waiting in ztest_device_removal()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8cb119e3dc0a: Fix 2 small bugs with cached dsl_scan_phys_t (authored by Tom Caputi <tcaputi@datto.com>).Oct 24 2018, 9:37 PM