Re: [RFC] percpu: use nr_groups as check condition

2019-02-23 Thread Dennis Zhou
Hi Peng, On Wed, Feb 20, 2019 at 01:32:55PM +, Peng Fan wrote: > group_cnt array is defined with NR_CPUS entries, but normally > nr_groups will not reach up to NR_CPUS. So there is no issue > to the current code. > > Checking other parts of pcpu_build_alloc_info, use nr_groups as > check cond

[RFC] percpu: use nr_groups as check condition

2019-02-20 Thread Peng Fan
group_cnt array is defined with NR_CPUS entries, but normally nr_groups will not reach up to NR_CPUS. So there is no issue to the current code. Checking other parts of pcpu_build_alloc_info, use nr_groups as check condition, so make it consistent to use 'group < nr_groups' as for loop check. In ca