mm: skip readahead if the cgroup is congested
authorJosef Bacik <jbacik@fb.com>
Tue, 3 Jul 2018 15:15:03 +0000 (11:15 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:54 +0000 (09:07 -0600)
commitca47e8c72ae141587cabf3dab693f6754d8c416b
tree92d23a5608cdfa17635fe78da7b979704e61eed5
parentb351f0c76c3eb94c9ccfb68d0b23899a35e47f27
mm: skip readahead if the cgroup is congested

We noticed in testing we'd get pretty bad latency stalls under heavy
pressure because read ahead would try to do its thing while the cgroup
was under severe pressure.  If we're under this much pressure we want to
do as little IO as possible so we can still make progress on real work
if we're a throttled cgroup, so just skip readahead if our group is
under pressure.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/readahead.c