> 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> -- dm-devel mailing list dm-devel@redhat.com https://listman.redhat.com/mailman/listinfo/dm-devel
- [dm-devel] [PATCH v2 11/47] gfs2: dynamically allocate the gfs... Qi Zheng
- [dm-devel] [PATCH v2 32/47] ext4: dynamically allocate the ext... Qi Zheng
- [dm-devel] [PATCH v2 12/47] NFSv4.2: dynamically allocate the ... Qi Zheng
- [dm-devel] [PATCH v2 15/47] quota: dynamically allocate the dq... Qi Zheng
- [dm-devel] [PATCH v2 29/47] vmw_balloon: dynamically allocate ... Qi Zheng
- Re: [dm-devel] [PATCH v2 29/47] vmw_balloon: dynamically ... Muchun Song
- [dm-devel] [PATCH v2 36/47] xfs: dynamically allocate the xfs-... Qi Zheng
- [dm-devel] [PATCH v2 42/47] drm/ttm: introduce pool_shrink_rws... Qi Zheng
- [dm-devel] [PATCH v2 07/47] xenbus/backend: dynamically alloca... Qi Zheng
- [dm-devel] [PATCH v2 34/47] nfsd: dynamically allocate the nfs... Qi Zheng
- [dm-devel] [PATCH v2 14/47] nfsd: dynamically allocate the nfs... Qi Zheng
- [dm-devel] [PATCH v2 18/47] rcu: dynamically allocate the rcu-... Qi Zheng
- [dm-devel] [PATCH v2 25/47] dm: dynamically allocate the dm-bu... Qi Zheng