Skip to content

memcontrol follow-up patches

Frank van der Linden stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm: memcontrol: fix NR_WRITEBACK leak in memcg and system statsinclude/linux/memcontrol.h+16 -80 replies
2/5mm: memcg: make sure memory.events is uptodate when waking pollersinclude/linux/memcontrol.h mm/memcontrol.c mm/vmscan.c+35 -302 replies
3/5mem_cgroup: make sure moving_account, move_lock_task and stat_cpu in the same cachelineinclude/linux/memcontrol.h+19 -40 replies
4/5mm: fix oom_kill event handlinginclude/linux/memcontrol.h mm/memcontrol.c mm/oom_kill.c+27 -70 replies
5/5mm: writeback: use exact memcg dirty countsinclude/linux/memcontrol.h mm/memcontrol.c+22 -30 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchTejun HeoRik van RielAndrew MortonMichal HockoKonstantin KhlebnikovJohannes WeinerRoman Gushchin
1/5Debugged-by R-b R-b
2/5A-b A-b
3/5
4/5A-b A-b A-b
5/5A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v1 thread

Cover letter [PATCH 4.14 0/5] memcontrol follow-up patches

During the 4.14.214 timeframe, we submitted the following cherry-picks/backports:

mm: memcontrol: eliminate raw access to stat and event counters
mm: memcontrol: implement lruvec stat functions on top of each other
mm: memcontrol: fix excessive complexity in memory.stat reporting

They were accepted and part of linux-4.14.y since 4.14.214.

These were valid fixes, but needed a few follow-ups, or regressions could occur. The regressions are described in the follow-up commits.

This 4.14 series adds these follow-ups, fixing these regressions.

Apologies for missing these commits. Two of them even had the proper Fixes tags. The other two didn't, but still mentioned the original commit in the description, so we should have caught them.

They are all clean cherry-picks, with the exception of "mm: fix oom_kill event handling", which needed minor contextual massaging.

----

Aaron Lu (1):
mem_cgroup: make sure moving_account, move_lock_task and stat_cpu in
the same cacheline

Greg Thelen (1):
mm: writeback: use exact memcg dirty counts

Johannes Weiner (2):
mm: memcontrol: fix NR_WRITEBACK leak in memcg and system stats
mm: memcg: make sure memory.events is uptodate when waking pollers

Roman Gushchin (1):
mm: fix oom_kill event handling

 include/linux/memcontrol.h | 111 ++++++++++++++++++++++++++-----------
 mm/memcontrol.c            |  54 ++++++++++++------
 mm/oom_kill.c              |   2 +-
 mm/vmscan.c                |   2 +-
 4 files changed, 118 insertions(+), 51 deletions(-)