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]
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
@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
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
4 matches
Mail list logo