lkml.org 
[lkml]   [2023]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2 29/47] vmw_balloon: dynamically allocate the vmw-balloon shrinker
    From
    Date


    > On Jul 24, 2023, at 17:43, Qi Zheng <zhengqi.arch@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.arch@bytedance.com>

    Nice cleanup.

    Reviewed-by: Muchun Song <songmuchun@bytedance.com>


    \
     
     \ /
      Last update: 2023-07-26 09:41    [W:2.146 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site