]> git.proxmox.com Git - mirror_zfs.git/commit
Fix resilver writes in vdev_indirect_io_start
authorTom Caputi <tcaputi@datto.com>
Thu, 13 Dec 2018 22:18:48 +0000 (17:18 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Dec 2018 22:18:48 +0000 (14:18 -0800)
commit5aa95ba0d3502779695341b5f55fa5ba1d3330ff
tree87db3c6596a476839e0ec2278e4f55e8c15cb427
parent4b702901637ee0be1f654af38c86d0a68593f921
Fix resilver writes in vdev_indirect_io_start

This patch addresses an issue found in ztest where resilver
write zios that were passed to an indirect vdev would end up
being handled as though they were resilver read zios. This
caused issues where the zio->io_abd would be both read to
and written from at the same time, causing asserts to fail.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8193
module/zfs/vdev_indirect.c