> On Jul 24, 2023, at 17:43, Qi Zheng <zhengqi.a...@bytedance.com> 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 <zhengqi.a...@bytedance.com> Reviewed-by: Muchun Song <songmuc...@bytedance.com>
- [Cluster-devel] [PATCH v2 28/47] bcache: dynamically allocate ... Qi Zheng
- [Cluster-devel] [PATCH v2 21/47] mm: workingset: dynamically a... Qi Zheng
- [Cluster-devel] [PATCH v2 19/47] mm: thp: dynamically allocate... Qi Zheng
- [Cluster-devel] [PATCH v2 17/47] rcu: dynamically allocate the... Qi Zheng
- [Cluster-devel] [PATCH v2 31/47] mbcache: dynamically allocate... Qi Zheng
- [Cluster-devel] [PATCH v2 07/47] xenbus/backend: dynamically a... Qi Zheng
- [Cluster-devel] [PATCH v2 42/47] drm/ttm: introduce pool_shrin... Qi Zheng
- Re: [Cluster-devel] [PATCH v2 42/47] drm/ttm: introduce p... Muchun Song
- [Cluster-devel] [PATCH v2 05/47] binder: dynamically allocate ... Qi Zheng
- [Cluster-devel] [PATCH v2 47/47] mm: shrinker: convert shrinke... Qi Zheng
- [Cluster-devel] [PATCH v2 41/47] mm: shrinker: remove old APIs Qi Zheng
- [Cluster-devel] [PATCH v2 32/47] ext4: dynamically allocate th... Qi Zheng
- [Cluster-devel] [PATCH v2 01/47] mm: vmscan: move shrinker-rel... Qi Zheng