RE: [PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-03-03 Thread Peng Fan
t; > Behalf Of Dennis Zhou > > > Sent: 2019年2月28日 10:18 > > > To: Dennis Zhou ; Tejun Heo ; > > > Christoph Lameter > > > Cc: Vlad Buslov ; kernel-t...@fb.com; > > > linux...@kvack.org; linux-kernel@vger.kernel.org > > > Subject: [PATCH 02/12]

Re: [PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-03-02 Thread Dennis Zhou
Heo ; Christoph > > Lameter > > Cc: Vlad Buslov ; kernel-t...@fb.com; > > linux...@kvack.org; linux-kernel@vger.kernel.org > > Subject: [PATCH 02/12] percpu: do not search past bitmap when allocating an > > area > > > > pcpu_find_block_fit() guarantees that a

RE: [PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-03-02 Thread Peng Fan
@kvack.org; linux-kernel@vger.kernel.org > Subject: [PATCH 02/12] percpu: do not search past bitmap when allocating an > area > > pcpu_find_block_fit() guarantees that a fit is found within > PCPU_BITMAP_BLOCK_BITS. Iteration is used to determine the first fit as it > compares against

[PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-02-27 Thread Dennis Zhou
pcpu_find_block_fit() guarantees that a fit is found within PCPU_BITMAP_BLOCK_BITS. Iteration is used to determine the first fit as it compares against the block's contig_hint. This can lead to incorrectly scanning past the end of the bitmap. The behavior was okay given the check after for bit_off