]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/ztest/ztest.c
Fix ztest deadman panic with indirect vdev damage
authorTom Caputi <tcaputi@datto.com>
Thu, 18 Oct 2018 20:53:27 +0000 (16:53 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 24 Oct 2018 21:37:31 +0000 (14:37 -0700)
commit4a7eb69a5ab0027a0f347a0cdd37b0275fcfecad
tree1445bbd1acde6e39fd6d4191af9a2e92b282d59f
parent5e0bd0ae056e26de36dee3c199c6fcff8f14ee15
Fix ztest deadman panic with indirect vdev damage

This patch fixes an issue where ztest's deadman thread would
trigger a panic because reconstructing artifically damaged
blocks would take too long to reconstruct. This patch simply
limits how often ztest inflicts split-block damage and how
many segments it can damage when it does.

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
cmd/ztest/ztest.c
module/zfs/vdev_indirect.c