• Peter Zijlstra's avatar
    mm, locking: Fix up flush_tlb_pending() related merge in do_huge_pmd_numa_page() · ccde85ba
    Peter Zijlstra authored
    Merge commit:
    
      040cca3a ("Merge branch 'linus' into locking/core, to resolve conflicts")
    
    overlooked the fact that do_huge_pmd_numa_page() now does two TLB
    flushes. Commit:
    
      8b1b436d ("mm, locking: Rework {set,clear,mm}_tlb_flush_pending()")
    
    and commit:
    
      a9b80250 ("Revert "mm: numa: defer TLB flush for THP migration as long as possible"")
    
    Both moved the TLB flush around but slightly different, the end result
    being that what was one became two.
    
    Clean this up.
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Russell King <linux@armlinux.org.uk>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vineet Gupta <vgupta@synopsys.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    ccde85ba
huge_memory.c 75 KB