Re: [PATCH 0/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-02 Thread Christopher Lameter
On Wed, 2 Aug 2017, Huang, Ying wrote: > To allocate cache line size aligned percpu memory dynamically, > alloc_percpu_aligned() is introduced and used in iova drivers too. alloc_percpu() already aligns objects as specified when they are declared. Moreover the function is improperly named since

[PATCH 0/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-02 Thread Huang, Ying
From: Huang Ying struct call_single_data is used in IPI to transfer information between CPUs. Its size is bigger than sizeof(unsigned long) and less than cache line size. Now, it is allocated with no any alignment requirement. This makes it possible for allocated call_single_data to cross 2 ca