mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
zio: rename io_reexecute as io_post; use it for the direct IO checksum error flag
We're not supposed to modify someone else's io_flags, so we need another way to propagate DIO_CHKSUM_ERR. If we squint, we can see that io_reexecute is really just recording exceptional events that a parent (or its parents) will need to do something about. It just happens that the only things we've had historically are two forms of reexecution: now or later (suspend). So, rename it to io_post, as in, post-IO info/events/actions. And now we have a few spare bits for other conditions. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <rob.norris@klarasystems.com> Closes #17507
This commit is contained in:
@@ -779,7 +779,7 @@ vdev_mirror_io_done(zio_t *zio)
|
||||
* being written out during self healing.
|
||||
*/
|
||||
if ((zio->io_flags & ZIO_FLAG_DIO_READ) &&
|
||||
(zio->io_flags & ZIO_FLAG_DIO_CHKSUM_ERR)) {
|
||||
(zio->io_post & ZIO_POST_DIO_CHKSUM_ERR)) {
|
||||
zio_dio_chksum_verify_error_report(zio);
|
||||
zio->io_error = vdev_mirror_worst_error(mm);
|
||||
ASSERT3U(zio->io_error, ==, ECKSUM);
|
||||
|
||||
Reference in New Issue
Block a user