Re: [PATCH v18 19/32] mm/swap.c: serialize memcg changes in pagevec_lru_move_fn

2020-09-21 Thread Alex Shi
在 2020/9/22 上午8:42, Hugh Dickins 写道: > On Mon, 24 Aug 2020, Alex Shi wrote: > >> Hugh Dickins' found a memcg change bug on original version: >> If we want to change the pgdat->lru_lock to memcg's lruvec lock, we have >> to serialize mem_cgroup_move_account during pagevec_lru_move_fn. The >> pos

Re: [PATCH v18 19/32] mm/swap.c: serialize memcg changes in pagevec_lru_move_fn

2020-09-21 Thread Hugh Dickins
On Mon, 24 Aug 2020, Alex Shi wrote: > Hugh Dickins' found a memcg change bug on original version: > If we want to change the pgdat->lru_lock to memcg's lruvec lock, we have > to serialize mem_cgroup_move_account during pagevec_lru_move_fn. The > possible bad scenario would like: > > cpu 0

[PATCH v18 19/32] mm/swap.c: serialize memcg changes in pagevec_lru_move_fn

2020-08-24 Thread Alex Shi
Hugh Dickins' found a memcg change bug on original version: If we want to change the pgdat->lru_lock to memcg's lruvec lock, we have to serialize mem_cgroup_move_account during pagevec_lru_move_fn. The possible bad scenario would like: cpu 0 cpu 1 lruvec =