Re: [PATCH 4/5] drm/ttm: introduce pool_shrink_rwsem

2023-08-16 Thread Qi Zheng
Hi Christian, On 2023/8/16 17:14, Christian König wrote: Am 16.08.23 um 10:34 schrieb Qi Zheng: 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 no

Re: [PATCH 4/5] drm/ttm: introduce pool_shrink_rwsem

2023-08-16 Thread Christian König
Am 16.08.23 um 10:34 schrieb Qi Zheng: 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

[PATCH 4/5] drm/ttm: introduce pool_shrink_rwsem

2023-08-16 Thread Qi Zheng
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 up