]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zdb/zdb.c
Fix zdb_read_block using zio after it is destroyed
authorPaul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>
Tue, 3 Dec 2019 22:37:15 +0000 (17:37 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Dec 2019 22:37:15 +0000 (14:37 -0800)
commit5a089773742b0c48a7baea32194566ac2987be7d
treebd8bcce9edd5c905a8eb8f9cc1fed6f68f5ceb03
parent54c8366e3984b710dc2ce99ffdce6dfb15e8eecf
Fix zdb_read_block using zio after it is destroyed

The checksum display code of zdb_read_block uses a zio
to read in the block and then calls zio_checksum_compute.
Use a new zio in the call to zio_checksum_compute not the zio
from the read which has been destroyed by zio_wait.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Paul Zuchowski <pzuchowski@datto.com>
Closes #9644
Closes #9657
cmd/zdb/zdb.c