diff --git a/module/zfs/arc.c b/module/zfs/arc.c index f24621f492..5544490958 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -9757,6 +9757,7 @@ l2arc_rebuild(l2arc_dev_t *dev) !dev->l2ad_first) goto out; + cond_resched(); for (;;) { mutex_enter(&l2arc_rebuild_thr_lock); if (dev->l2ad_rebuild_cancel) {