+ mm-introduce-api-for-split-page-table-lock-for-pmd-level.patch added to -mm tree
[email protected]
maintainerSubject: + mm-introduce-api-for-split-page-table-lock-for-pmd-level.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 07 Oct 2013 16:10:08 -0700
The patch titled
Subject: mm: introduce api for split page table lock for PMD level
has been added to the -mm tree. Its filename is
mm-introduce-api-for-split-page-table-lock-for-pmd-level.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-introduce-api-for-split-page-table-lock-for-pmd-level.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-introduce-api-for-split-page-table-lock-for-pmd-level.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: mm: introduce api for split page table lock for PMD level
Basic api, backed by mm->page_table_lock for now. Actual implementation will be added later.
---
include/linux/mm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)
include/linux/mm.h renamed from include/linux/mm.h~mm-introduce-api-for-split-page-table-lock-for-pmd-level +13 -0
@@ -1294,6 +1294,19 @@ static inline void pgtable_page_dtor(str ((unlikely (pmd_none (*(pmd))) &&__pte_alloc_kernel (pmd, address))? \ NULL: pte_offset_kernel(pmd, address)) +static inline spinlock_t *pmd_lockptr (struct mm_struct *mm,pmd_t *pmd) +{ +return &mm->page_table_lock; +} + + +static inline spinlock_t *pmd_lock (struct mm_struct *mm,pmd_t *pmd) +{ +spinlock_t *ptl =pmd_lockptr (mm, pmd); +spin_lock (ptl); +return ptl; +} +extern void free_area_init (unsigned long * zones_size);extern void free_area_init_node (int nid,unsigned long * zones_size,unsigned long zone_start_pfn,unsigned long *zholes_size);
_
Patches currently in -mm which might be from [email protected] are
mm-huge_memoryc-fix-stale-comments-of-transparent_hugepage_flags.patch mm-thp-cleanup-mv-alloc_hugepage-to-better-place.patch mm-thp-khugepaged-add-policy-for-finding-target-node.patch mm-thp-khugepaged-add-policy-for-finding-target-node-fix.patch mm-avoid-increase-sizeofstruct-page-due-to-split-page-table-lock.patch mm-rename-use_split_ptlocks-to-use_split_pte_ptlocks.patch mm-convert-mm-nr_ptes-to-atomic_long_t.patch mm-introduce-api-for-split-page-table-lock-for-pmd-level.patch mm-thp-change-pmd_trans_huge_lock-to-return-taken-lock.patch mm-thp-move-ptl-taking-inside-page_check_address_pmd.patch mm-thp-do-not-access-mm-pmd_huge_pte-directly.patch mm-hugetlb-convert-hugetlbfs-to-use-split-pmd-lock.patch mm-convert-the-rest-to-new-page-table-lock-api.patch mm-implement-split-page-table-lock-for-pmd-level.patch x86-mm-enable-split-page-table-lock-for-pmd-level.patch thp-mm-locking-tail-page-is-a-bug.patch mm-drop-actor-argument-of-do_generic_file_read.patch mm-drop-actor-argument-of-do_generic_file_read-fix.patch