diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2018-06-01 13:54:24 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-03 20:40:37 +1000 |
commit | ed515b6898c36775ddd99ff9ffeda4e83917acda (patch) | |
tree | 565dfa28eaa7de9126c40c0e0d052e59ab9445a0 /arch/powerpc/mm/slb.c | |
parent | powerpc/mm/hash: Add missing isync prior to kernel stack SLB switch (diff) | |
download | linux-dev-ed515b6898c36775ddd99ff9ffeda4e83917acda.tar.xz linux-dev-ed515b6898c36775ddd99ff9ffeda4e83917acda.zip |
powerpc/mm/hugetlb: Update hugetlb related locks
With split pmd page table lock enabled, we don't use mm->page_table_lock when
updating pmd entries. This patch update hugetlb path to use the right lock
when inserting huge page directory entries into page table.
ex: if we are using hugepd and inserting hugepd entry at the pmd level, we
use pmd_lockptr, which based on config can be split pmd lock.
For update huge page directory entries itself we use mm->page_table_lock. We
do have a helper huge_pte_lockptr() for that.
Fixes: 675d99529 ("powerpc/book3s64: Enable split pmd ptlock")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions