Message ID | 20210211183104.pDInxyzku%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] revert-mm-memcontrol-avoid-workload-stalls-when-lowering-memoryhigh.patch removed from -mm tree | expand |
--- a/mm/memcontrol.c~revert-mm-memcontrol-avoid-workload-stalls-when-lowering-memoryhigh +++ a/mm/memcontrol.c @@ -6271,6 +6271,8 @@ static ssize_t memory_high_write(struct if (err) return err; + page_counter_set_high(&memcg->memory, high); + for (;;) { unsigned long nr_pages = page_counter_read(&memcg->memory); unsigned long reclaimed; @@ -6294,10 +6296,7 @@ static ssize_t memory_high_write(struct break; } - page_counter_set_high(&memcg->memory, high); - memcg_wb_domain_size_changed(memcg); - return nbytes; }