]> git.proxmox.com Git - mirror_zfs.git/commit
Bump checksum error counter before reporting to ZED
authorRob Wing <rob.wing@klarasystems.com>
Mon, 14 Nov 2022 07:40:38 +0000 (07:40 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 3 Dec 2022 01:42:22 +0000 (17:42 -0800)
commit7a75f74cec06a57b327b351ae4184400ff4e7cb2
tree777c8281b579ac023f72cb8e753fc4f8f956391e
parentdb6ba8d7443a234e497264a1da3d197d5ca32777
Bump checksum error counter before reporting to ZED

The checksum error counter is incremented after reporting to ZED. This
leads ZED to receiving a checksum error report with 0 checksum errors.

To avoid this, bump the checksum error counter before reporting to ZED.

Sponsored-by: Seagate Technology LLC
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Wing <rob.wing@klarasystems.com>
Closes #14190
module/zfs/vdev_indirect.c
module/zfs/vdev_raidz.c
module/zfs/zio.c