]> granicus.if.org Git - zfs/commit
Fix ASSERT in dsl_scan_fini() and cleanup comments
authorTom Caputi <tcaputi@datto.com>
Thu, 29 Mar 2018 01:30:44 +0000 (21:30 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 Mar 2018 01:30:44 +0000 (18:30 -0700)
commit13a2ff2727dd5fb46b08570279689373a7d5b26a
treed1c86b4db6ae2cb2eb43bf582edfdae5a99cfde4
parentd2812de6f7e115d205f4fb730db2d134f362e0e7
Fix ASSERT in dsl_scan_fini() and cleanup comments

This patch fixes an issue where dsl_scan_prefetch_cb() might
add more prefetch I/Os to the prefetch queue after prefetching
has been completed. This was happening because that code was
checking scn->scn_suspending instead of scn->scn_prefetch_stop.
This occasionally triggered an ASSERT during ztest runs in
dsl_scan_fini() when the code attempted to destroy an AVL tree
that still had entires in it. This patch also includes a number
of spelling corrections and comment cleanups throughout
dsl_scan.c

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7353
module/zfs/dsl_scan.c