Re: [PATCH 14/26] mm: back off direct reclaim on excessive shrinker deferral

Matthew Wilcox
2019-10-11T16:21:07Z

On Wed, Oct 09, 2019 at 02:21:12PM +1100, Dave Chinner wrote:
> + if ((reclaim_state->deferred_objects >
> + sc->nr_scanned - nr_scanned) &&
> + (reclaim_state->deferred_objects >
> + reclaim_state->scanned_objects)) {
> + wait_iff_congested(BLK_RW_ASYNC, HZ/50);

Unfortunately, Jens broke wait_iff_congested() recently, and doesn't plan
to fix it. We need to come up with another way to estimate congestion.