Benjamin Herrenschmidt wrote:
On Mon, 2007-07-09 at 19:29 +1000, Nick Piggin wrote:They could just #define one to the other though, there are only a small number of them. Is there a downside to not making them distinct? i386 for example probably would just keep doing a tlb flush for fork and not want to worry about touching the tlb gather stuff.But the tlb gather stuff just does ... a flush_tlb_mm() on x86 :-)
But it still does the get_cpu of the mmu gather data structure and has to look in there and touch the cacheline. You're also having to do more work when unlocking/relocking the ptl etc.
I really think it's the right API
-- SUSE Labs, Novell Inc. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Nick Piggin <[email protected]>
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- References:
- removing flush_tlb_mm as a generic hook ?
- From: Benjamin Herrenschmidt <[email protected]>
- Re: removing flush_tlb_mm as a generic hook ?
- From: Benjamin Herrenschmidt <[email protected]>
- [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Nick Piggin <[email protected]>
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Benjamin Herrenschmidt <[email protected]>
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Nick Piggin <[email protected]>
- Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- From: Benjamin Herrenschmidt <[email protected]>
- removing flush_tlb_mm as a generic hook ?
- Prev by Date: Re: Linux 2.6.22 released
- Next by Date: Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- Previous by thread: Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- Next by thread: Re: [RFC/PATCH] Use mmu_gather for fork() instead of flush_tlb_mm()
- Index(es):