summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/zfs/arc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 4e7e05924..074163369 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -4322,17 +4322,11 @@ top:
/*
* Gracefully handle a damaged logical block size as a
- * checksum error by passing a dummy zio to the done callback.
+ * checksum error.
*/
if (size > spa_maxblocksize(spa)) {
- if (done) {
- rzio = zio_null(pio, spa, NULL,
- NULL, NULL, zio_flags);
- rzio->io_error = ECKSUM;
- done(rzio, buf, private);
- zio_nowait(rzio);
- }
- rc = ECKSUM;
+ ASSERT3P(buf, ==, NULL);
+ rc = SET_ERROR(ECKSUM);
goto out;
}