From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muchun Song Date: Wed, 26 Jul 2023 15:35:42 +0800 Subject: [Cluster-devel] [PATCH v2 29/47] vmw_balloon: dynamically allocate the vmw-balloon shrinker In-Reply-To: <20230724094354.90817-30-zhengqi.arch@bytedance.com> References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-30-zhengqi.arch@bytedance.com> Message-ID: <1D40C9FD-84F6-40BA-8D2C-0DF05882C933@linux.dev> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > On Jul 24, 2023, at 17:43, Qi Zheng 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 Nice cleanup. Reviewed-by: Muchun Song