Skip to content

Commit

Permalink
revert "memcg, vmscan: do not attempt soft limit reclaim if it would …
Browse files Browse the repository at this point in the history
…not scan anything"

Revert commit e839b6a ("memcg, vmscan: do not attempt soft limit
reclaim if it would not scan anything")

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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Sep 25, 2013
1 parent 8f939a9 commit 3120055
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1872,11 +1872,7 @@ enum mem_cgroup_filter_t
mem_cgroup_soft_reclaim_eligible(struct mem_cgroup *memcg,
struct mem_cgroup *root)
{
struct mem_cgroup *parent;

if (!memcg)
memcg = root_mem_cgroup;
parent = memcg;
struct mem_cgroup *parent = memcg;

if (res_counter_soft_limit_excess(&memcg->res))
return VISIT;
Expand Down
4 changes: 1 addition & 3 deletions mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ static bool global_reclaim(struct scan_control *sc)

static bool mem_cgroup_should_soft_reclaim(struct scan_control *sc)
{
struct mem_cgroup *root = sc->target_mem_cgroup;
return !mem_cgroup_disabled() &&
mem_cgroup_soft_reclaim_eligible(root, root) != SKIP_TREE;
return !mem_cgroup_disabled();
}
#else
static bool global_reclaim(struct scan_control *sc)
Expand Down

0 comments on commit 3120055

Please sign in to comment.