> On Jul 24, 2023, at 17:43, Qi Zheng <zhengqi.a...@bytedance.com> 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 <zhengqi.a...@bytedance.com> Nice cleanup. Reviewed-by: Muchun Song <songmuc...@bytedance.com>
- [PATCH v2 25/47] dm: dynamically allocate the dm-bufio shrinke... Qi Zheng
- [PATCH v2 26/47] dm zoned: dynamically allocate the dm-zoned-m... Qi Zheng
- [PATCH v2 27/47] md/raid5: dynamically allocate the md-raid5 s... Qi Zheng
- [PATCH v2 28/47] bcache: dynamically allocate the md-bcache sh... 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 30/47] virtio_balloon: dynamically allocate the virt... Qi Zheng
- [PATCH v2 31/47] mbcache: dynamically allocate the mbcache shr... Qi Zheng
- [PATCH v2 32/47] ext4: dynamically allocate the ext4-es shrink... Qi Zheng
- [PATCH v2 33/47] jbd2, ext4: dynamically allocate the jbd2-jou... Qi Zheng
- [PATCH v2 34/47] nfsd: dynamically allocate the nfsd-client sh... Qi Zheng