> On Jul 24, 2023, at 17:43, Qi Zheng <[email protected]> wrote: > > In preparation for implementing lockless slab shrink, use new APIs to > dynamically allocate the vmw-balloon shrinker, so that it can be freed > asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU > read-side critical section when releasing the struct vmballoon. > > And we can simply exit vmballoon_init() when registering the shrinker > fails. So the shrinker_registered indication is redundant, just remove it. > > Signed-off-by: Qi Zheng <[email protected]> Nice cleanup. Reviewed-by: Muchun Song <[email protected]>
- [PATCH v2 41/47] mm: shrinker: remove old APIs Qi Zheng
- [PATCH v2 42/47] drm/ttm: introduce pool_shrink_rwsem Qi Zheng
- [PATCH v2 43/47] mm: shrinker: add a secondary array for shrin... Qi Zheng
- [PATCH v2 44/47] mm: shrinker: make global slab shrink lockles... Qi Zheng
- [PATCH v2 45/47] mm: shrinker: make memcg slab shrink lockless Qi Zheng
- [PATCH v2 46/47] mm: shrinker: hold write lock to reparent shr... Qi Zheng
- [PATCH v2 47/47] mm: shrinker: convert shrinker_rwsem to mutex Qi Zheng
- [PATCH v2 27/47] md/raid5: dynamically allocate the md-raid5 s... Qi Zheng
- [PATCH v2 29/47] vmw_balloon: dynamically allocate the vmw-bal... Qi Zheng
- Re: [PATCH v2 29/47] vmw_balloon: dynamically allocate th... Muchun Song
- [PATCH v2 40/47] fs: super: dynamically allocate the s_shrink Qi Zheng
- [PATCH v2 30/47] virtio_balloon: dynamically allocate the virt... Qi Zheng
- [PATCH v2 26/47] dm zoned: dynamically allocate the dm-zoned-m... Qi Zheng
- [PATCH v2 37/47] xfs: dynamically allocate the xfs-inodegc shr... Qi Zheng
- [PATCH v2 39/47] zsmalloc: dynamically allocate the mm-zspool ... Qi Zheng
