Re: [Devel] [PATCH rh7] mm/memcg: fix css_tryget(), css_put() imbalance

2020-07-15 Thread Konstantin Khorenko
On 07/15/2020 04:25 PM, Andrey Ryabinin wrote: If mem_cgroup_iter_load() goes to retry after failed read_seqretry(): retry: seq = read_seqbegin(&iter->last_visited_lock); if (iter->last_dead_count == *sequence) { position = READ_ONCE(iter->last_visited);

[Devel] [PATCH rh7] mm/memcg: fix css_tryget(), css_put() imbalance

2020-07-15 Thread Andrey Ryabinin
If mem_cgroup_iter_load() goes to retry after failed read_seqretry(): retry: seq = read_seqbegin(&iter->last_visited_lock); if (iter->last_dead_count == *sequence) { position = READ_ONCE(iter->last_visited); if (read_seqretry(&iter->last_visited_loc