[PATCH 11/14] mm: throttle on IO only when there are too many dirty and writeback pages

2016-04-20 Thread Michal Hocko
From: Michal Hocko wait_iff_congested has been used to throttle allocator before it retried another round of direct reclaim to allow the writeback to make some progress and prevent reclaim from looping over dirty/writeback pages without making any progress. We used to do

[PATCH 11/14] mm: throttle on IO only when there are too many dirty and writeback pages

2016-04-20 Thread Michal Hocko
From: Michal Hocko wait_iff_congested has been used to throttle allocator before it retried another round of direct reclaim to allow the writeback to make some progress and prevent reclaim from looping over dirty/writeback pages without making any progress. We used to do congestion_wait before