Message ID | 20220203222010.D0C12C340E8@smtp.kernel.org |
---|---|
State | New |
Headers | show |
Series | + mm-vmscan-remove-deadlock-due-to-throttling-failing-to-make-progress.patch added to -mm tree | expand |
--- a/mm/vmscan.c~mm-vmscan-remove-deadlock-due-to-throttling-failing-to-make-progress +++ a/mm/vmscan.c @@ -1066,8 +1066,10 @@ void reclaim_throttle(pg_data_t *pgdat, * forward progress (e.g. journalling workqueues or kthreads). */ if (!current_is_kswapd() && - current->flags & (PF_IO_WORKER|PF_KTHREAD)) + current->flags & (PF_IO_WORKER|PF_KTHREAD)) { + cond_resched(); return; + } /* * These figures are pulled out of thin air.