diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 43cdb7c44e..45397d89bb 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -2400,11 +2400,13 @@ zio_suspend(spa_t *spa, zio_t *zio, zio_suspend_reason_t reason) "failure and the failure mode property for this pool " "is set to panic.", spa_name(spa)); - cmn_err(CE_WARN, "Pool '%s' has encountered an uncorrectable I/O " - "failure and has been suspended.\n", spa_name(spa)); + if (!spa_suspended(spa)) { + cmn_err(CE_WARN, "Pool '%s' has encountered an uncorrectable " + "I/O failure and has been suspended.\n", spa_name(spa)); - (void) zfs_ereport_post(FM_EREPORT_ZFS_IO_FAILURE, spa, NULL, - NULL, NULL, 0); + (void) zfs_ereport_post(FM_EREPORT_ZFS_IO_FAILURE, spa, NULL, + NULL, NULL, 0); + } mutex_enter(&spa->spa_suspend_lock);