revert "vmscan, memcg: do softlimit reclaim also for targeted reclaim"
Revert commit a5b7c87f92
("vmscan, memcg: do softlimit reclaim also
for targeted reclaim")
I merged this prematurely - Michal and Johannes still disagree about the
overall design direction and the future remains unclear.
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
694fbc0fe7
commit
b1aff7fcf8
3 changed files with 9 additions and 15 deletions
|
@ -142,7 +142,7 @@ static bool global_reclaim(struct scan_control *sc)
|
|||
|
||||
static bool mem_cgroup_should_soft_reclaim(struct scan_control *sc)
|
||||
{
|
||||
return !mem_cgroup_disabled();
|
||||
return !mem_cgroup_disabled() && global_reclaim(sc);
|
||||
}
|
||||
#else
|
||||
static bool global_reclaim(struct scan_control *sc)
|
||||
|
@ -2195,7 +2195,7 @@ __shrink_zone(struct zone *zone, struct scan_control *sc, bool soft_reclaim)
|
|||
struct lruvec *lruvec;
|
||||
|
||||
if (soft_reclaim &&
|
||||
!mem_cgroup_soft_reclaim_eligible(memcg, root)) {
|
||||
!mem_cgroup_soft_reclaim_eligible(memcg)) {
|
||||
memcg = mem_cgroup_iter(root, memcg, &reclaim);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue