diff options
Diffstat (limited to 'module/zfs/zio_inject.c')
-rw-r--r-- | module/zfs/zio_inject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/zfs/zio_inject.c b/module/zfs/zio_inject.c index 69836dff3..a6eca8715 100644 --- a/module/zfs/zio_inject.c +++ b/module/zfs/zio_inject.c @@ -379,6 +379,10 @@ zio_handle_io_delay(zio_t *zio) if (handler->zi_record.zi_cmd != ZINJECT_DELAY_IO) continue; + if (handler->zi_record.zi_freq != 0 && + spa_get_random(100) >= handler->zi_record.zi_freq); + continue; + if (vd->vdev_guid == handler->zi_record.zi_guid) { seconds = handler->zi_record.zi_timer; break; |