]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hugetlb: take PMD sharing into account when flushing tlb/caches
authorMike Kravetz <mike.kravetz@oracle.com>
Thu, 30 Aug 2018 23:27:48 +0000 (16:27 -0700)
committerBrian Maly <brian.maly@oracle.com>
Mon, 24 Dec 2018 02:16:26 +0000 (21:16 -0500)
commit8a26e72f558bcba6215b024ca0191d7e7e2c92b8
treeb6a10f1c637a53a9b9c9b48153e1a97130221293
parent060917a40ed62b7a51c42b71028ba71471c88823
hugetlb: take PMD sharing into account when flushing tlb/caches

When fixing an issue with PMD sharing and migration, it was discovered
via code inspection that other callers of huge_pmd_unshare potentially
have an issue with cache and tlb flushing.

Use the routine adjust_range_if_pmd_sharing_possible() to calculate
worst case ranges for mmu notifiers.  Ensure that this range is flushed
if huge_pmd_unshare succeeds and unmaps a PUD_SIZE area.

Based on upstream dff11abe280b.  Ported to UEK4.

Orabug: 28951854

Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Larry Bassel <larry.bassel@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
mm/hugetlb.c