]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFZoL: Fix issue with scanning dedup blocks as scan ends
authormav <mav@FreeBSD.org>
Wed, 26 Feb 2020 15:59:46 +0000 (15:59 +0000)
committermav <mav@FreeBSD.org>
Wed, 26 Feb 2020 15:59:46 +0000 (15:59 +0000)
commit512cdfcc21089e72552767d56b0d0251cd2c331e
tree33d3824976dc43735166443ffbbeaca5df461586
parentccf948ce6c75db1bcc7754bf40606218d9510f17
MFZoL: 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
zfsonlinux/zfs@5e0bd0ae056e26de36dee3c199c6fcff8f14ee15

MFC after: 1 week
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_scan.c