Re: [PATCH] x86/mm/tlb: Do partial TLB flush when possible

2019-05-30 Thread Zhenzhong Duan
On 2019/5/30 22:15, Andy Lutomirski wrote: On Thu, May 30, 2019 at 12:56 AM Zhenzhong Duan wrote: This is a small optimization to stale TLB flush, if there is one new TLB flush, let it choose to do partial or full flush. or else, the stale flush take over and do full flush. I think this is

Re: [PATCH] x86/mm/tlb: Do partial TLB flush when possible

2019-05-30 Thread Andy Lutomirski
On Thu, May 30, 2019 at 12:56 AM Zhenzhong Duan wrote: > > This is a small optimization to stale TLB flush, if there is one new TLB > flush, let it choose to do partial or full flush. or else, the stale > flush take over and do full flush. I think this is invalid because: > > + if

[PATCH] x86/mm/tlb: Do partial TLB flush when possible

2019-05-30 Thread Zhenzhong Duan
This is a small optimization to stale TLB flush, if there is one new TLB flush, let it choose to do partial or full flush. or else, the stale flush take over and do full flush. Add unlikely() to info->freed_tables check as freeing page tables is relatively less. Signed-off-by: Zhenzhong Duan