diff options
author | Matthew Ahrens <[email protected]> | 2014-11-22 19:24:52 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-05-05 11:05:37 -0700 |
commit | 7a3066ffddcf4f87470e33a1cd414e558b90249c (patch) | |
tree | 211fac6f14ef1459fbe8bb3b020401bec739c3e8 /module/zfs/zio.c | |
parent | f3c517d814f0155407d50a22b2f9b2b936260b7a (diff) |
Illumos 5348 - zio_checksum_error() only fills in info if ECKSUM
5348 zio_checksum_error() only fills in info if ECKSUM
Reviewed by: Alex Reece <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Steven Hartland <[email protected]>
Approved by: Dan McDonald <[email protected]>
References:
https://www.illumos.org/issues/5348
https://github.com/illumos/illumos-gate/commit/373dc1cf
Ported-by: DHE <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3372
Diffstat (limited to 'module/zfs/zio.c')
-rw-r--r-- | module/zfs/zio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 032341378..c89a2f99e 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -2879,7 +2879,8 @@ zio_checksum_verify(zio_t *zio) if ((error = zio_checksum_error(zio, &info)) != 0) { zio->io_error = error; - if (!(zio->io_flags & ZIO_FLAG_SPECULATIVE)) { + if (error == ECKSUM && + !(zio->io_flags & ZIO_FLAG_SPECULATIVE)) { zfs_ereport_start_checksum(zio->io_spa, zio->io_vd, zio, zio->io_offset, zio->io_size, NULL, &info); |