Re: [PATCH] hugetlb_cgroup: fix imbalanced css_get and css_put pair for shared mappings

2021-03-01 Thread Miaohe Lin
On 2021/2/10 23:32, kernel test robot wrote: > Hi Miaohe, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on next-20210125] > [also build test ERROR on v5.11-rc7] > [cannot apply to linux/master linus/master hnaz-linux-mm/master v5.11-rc7 > v5.11-rc6 v5.11-rc5]

Re: [PATCH] hugetlb_cgroup: fix imbalanced css_get and css_put pair for shared mappings

2021-02-10 Thread kernel test robot
Hi Miaohe, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20210125] [also build test ERROR on v5.11-rc7] [cannot apply to linux/master linus/master hnaz-linux-mm/master v5.11-rc7 v5.11-rc6 v5.11-rc5] [If your patch is applied to the wrong git tree, kindly drop

Re: [PATCH] hugetlb_cgroup: fix imbalanced css_get and css_put pair for shared mappings

2021-02-10 Thread kernel test robot
Hi Miaohe, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20210125] [also build test ERROR on v5.11-rc7] [cannot apply to linux/master linus/master hnaz-linux-mm/master v5.11-rc7 v5.11-rc6 v5.11-rc5] [If your patch is applied to the wrong git tree, kindly drop

[PATCH] hugetlb_cgroup: fix imbalanced css_get and css_put pair for shared mappings

2021-02-10 Thread Miaohe Lin
The current implementation of hugetlb_cgroup for shared mappings could have different behavior. Consider the following two scenarios: 1.Assume initial css reference count of hugetlb_cgroup is 1: 1.1 Call hugetlb_reserve_pages with from = 1, to = 2. So css reference count is 2 associated with 1