]> git.proxmox.com Git - mirror_zfs.git/commit
Fix issue with scanning dedup blocks as scan ends
authorTom Caputi <tcaputi@datto.com>
Thu, 18 Oct 2018 08:13:07 +0000 (04:13 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 24 Oct 2018 21:37:15 +0000 (14:37 -0700)
commit5e0bd0ae056e26de36dee3c199c6fcff8f14ee15
tree1e6e7487e71c0db8ca50b1ef73f3654ab3a974d6
parenta783dd96843699744e0543b579b5f50c9023432f
Fix issue with scanning dedup blocks as scan ends

This patch fixes an issue discovered by ztest where
dsl_scan_ddt_entry() could add I/Os to the dsl scan queues
between when the scan had finished all required work and
when the scan was marked as complete. This caused the scan
to spin indefinitely without ending.

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