diff options
-rw-r--r-- | module/zfs/zfs_fm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/zfs_fm.c b/module/zfs/zfs_fm.c index 6c0b038be..68c0951f6 100644 --- a/module/zfs/zfs_fm.c +++ b/module/zfs/zfs_fm.c @@ -778,15 +778,15 @@ zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, nvlist_t *ereport = NULL; nvlist_t *detector = NULL; + if (zfs_is_ratelimiting_event(subclass, vd)) + return; + zfs_ereport_start(&ereport, &detector, subclass, spa, vd, zio, stateoroffset, size); if (ereport == NULL) return; - if (zfs_is_ratelimiting_event(subclass, vd)) - return; - /* Cleanup is handled by the callback function */ zfs_zevent_post(ereport, detector, zfs_zevent_post_cb); #endif |