Re: [PATCH] percpu: enforce alignment for dynamic percpu allocations

2017-01-04 Thread Player, Timmons
On 1/4/17, 4:29 AM, "osv-dev@googlegroups.com on behalf of Nadav Har'El" wrote: > >On Tue, Jan 3, 2017 at 9:33 PM, Timmons C. Player > wrote: > >If the dynamic memory buffer used for percpu allocations >wasn't congruent to the requested alignment, then the >returned memory wouldn't actually be

Re: [PATCH] percpu: enforce alignment for dynamic percpu allocations

2017-01-04 Thread Nadav Har'El
On Tue, Jan 3, 2017 at 9:33 PM, Timmons C. Player < timmons.pla...@spirent.com> wrote: > If the dynamic memory buffer used for percpu allocations > wasn't congruent to the requested alignment, then the > returned memory wouldn't actually be aligned correctly. > This change forces the bitmap search

[PATCH] percpu: enforce alignment for dynamic percpu allocations

2017-01-03 Thread Timmons C. Player
If the dynamic memory buffer used for percpu allocations wasn't congruent to the requested alignment, then the returned memory wouldn't actually be aligned correctly. This change forces the bitmap search to start at the proper alignment. Signed-off-by: Timmons C. Player --- core/percpu.cc | 8 ++