aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVinayak Menon <vinmenon@codeaurora.org>2016-02-24 14:27:20 +0530
committerMoyster <oysterized@gmail.com>2019-05-03 12:57:32 +0200
commit8e49cfea558c54bbc648314de117e3bd7f03cdb9 (patch)
tree770f1ada40837f46d9fca56f8d48a4042148330d /include/linux
parent6899527530aee8f9add4b18c591286a59405e1ed (diff)
mm: fix cma accounting in zone_watermark_ok
Some cases were reported where atomic unmovable allocations of order 2 fails, but kswapd does not wakeup. And in such cases it was seen that, when zone_watermark_ok check is performed to decide whether to wake up kswapd, there were lot of CMA pages of order 2 and above. This makes the watermark check succeed resulting in kswapd not being woken up. But since these atomic unmovable allocations can't come from CMA region, further atomic allocations keeps failing, without kswapd trying to reclaim. Usually concurrent movable allocations result in reclaim and improves the situtation, but the case reported was from a network test which was resulting in only atomic skb allocations being attempted. Change-Id: If953b8a8cfb0a5caa1fb63d3c032b194942f8091 Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org> Signed-off-by: Prakash Gupta <guptap@codeaurora.org> (cherry picked from commit ea934a2665d641ca879b2c374d06da64c832f00a)
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions