> On Jul 24, 2023, at 17:43, Qi Zheng <[email protected]> wrote: > > Currently, the synchronize_shrinkers() is only used by TTM pool. It only > requires that no shrinkers run in parallel. > > After we use RCU+refcount method to implement the lockless slab shrink, > we can not use shrinker_rwsem or synchronize_rcu() to guarantee that all > shrinker invocations have seen an update before freeing memory. > > So we introduce a new pool_shrink_rwsem to implement a private > synchronize_shrinkers(), so as to achieve the same purpose. > > Signed-off-by: Qi Zheng <[email protected]> Reviewed-by: Muchun Song <[email protected]>
- Re: [PATCH v2 37/47] xfs: dynamically al... Muchun Song
- [PATCH v2 38/47] xfs: dynamically allocate th... Qi Zheng via Linux-erofs
- Re: [PATCH v2 38/47] xfs: dynamically al... Muchun Song
- [PATCH v2 39/47] zsmalloc: dynamically alloca... Qi Zheng via Linux-erofs
- Re: [PATCH v2 39/47] zsmalloc: dynamical... Muchun Song
- [PATCH v2 40/47] fs: super: dynamically alloc... Qi Zheng via Linux-erofs
- Re: [PATCH v2 40/47] fs: super: dynamica... Muchun Song
- [PATCH v2 41/47] mm: shrinker: remove old API... Qi Zheng via Linux-erofs
- Re: [PATCH v2 41/47] mm: shrinker: remov... Muchun Song
- [PATCH v2 42/47] drm/ttm: introduce pool_shri... Qi Zheng via Linux-erofs
- Re: [PATCH v2 42/47] drm/ttm: introduce ... Muchun Song
- [PATCH v2 43/47] mm: shrinker: add a secondar... Qi Zheng via Linux-erofs
- Re: [PATCH v2 43/47] mm: shrinker: add a... Muchun Song
- [PATCH v2 44/47] mm: shrinker: make global sl... Qi Zheng via Linux-erofs
- Re: [PATCH v2 44/47] mm: shrinker: make ... Dave Chinner via Linux-erofs
- Re: [PATCH v2 44/47] mm: shrinker: m... Qi Zheng via Linux-erofs
- Re: [PATCH v2 44/47] mm: shrinke... Dave Chinner via Linux-erofs
- Re: [PATCH v2 44/47] mm: shr... Qi Zheng via Linux-erofs
- [PATCH v2 45/47] mm: shrinker: make memcg sla... Qi Zheng via Linux-erofs
- [PATCH v2 46/47] mm: shrinker: hold write loc... Qi Zheng via Linux-erofs
- [PATCH v2 47/47] mm: shrinker: convert shrink... Qi Zheng via Linux-erofs
