powerpc/mm: Check for matching hpte without taking hpte lock
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 3 Nov 2014 14:51:34 +0000 (20:21 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 2 Dec 2014 00:03:45 +0000 (11:03 +1100)
commit0ec2698fe1c451606c16e21dbfbd29efce694668
tree527a75c8e8264598235e27ea1e87bad6f924ef2f
parent221195fb80daa1a0c2fd54a023081c416fe93340
powerpc/mm: Check for matching hpte without taking hpte lock

With smaller hash page table config, we would end up in situation
where we would be replacing hash page table slot frequently. In
such config, we will find the hpte to be not matching, and we
can do that check without holding the hpte lock. We need to
recheck the hpte again after holding lock.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hash_native_64.c