Message ID | 20210124014348.Dsgf-_zOv%akpm@linux-foundation.org |
---|---|
State | Superseded |
Headers | show |
Series | + revert-mm-memcontrol-avoid-workload-stalls-when-lowering-memoryhigh.patch added to -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); @@ -6293,10 +6295,7 @@ static ssize_t memory_high_write(struct break; } - page_counter_set_high(&memcg->memory, high); - memcg_wb_domain_size_changed(memcg); - return nbytes; }