diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 8fa8c91ac49c..c1b065c43718 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -5525,6 +5525,7 @@ arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, arc_buf_hdr_t *hdr = NULL; kmutex_t *hash_lock = NULL; zio_t *rzio; + fstrans_cookie_t cookie = spl_fstrans_mark(); uint64_t guid = spa_load_guid(spa); boolean_t compressed_read = (zio_flags & ZIO_FLAG_RAW_COMPRESS) != 0; boolean_t encrypted_read = BP_IS_ENCRYPTED(bp) && @@ -5997,6 +5998,7 @@ arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, /* embedded bps don't actually go to disk */ if (!embedded_bp) spa_read_history_add(spa, zb, *arc_flags); + spl_fstrans_unmark(cookie); return (rc); }