mm-revert-mremap-pud_free-anti-fix.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-revert-mremap-pud_free-anti-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 17 Oct 2013 11:13:33 -0700
The patch titled
Subject: mm: revert mremap pud_free anti-fix
has been removed from the -mm tree. Its filename was
mm-revert-mremap-pud_free-anti-fix.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Hugh Dickins <[email protected]>
Subject: mm: revert mremap pud_free anti-fix
Revert 1ecfd533f4c5 ("mm/mremap.c: call pud_free() after fail calling pmd_alloc()"). The original code was correct: pud_alloc(), pmd_alloc(), pte_alloc_map() ensure that the pud, pmd, pt is already allocated, and seldom do they need to allocate; on failure, upper levels are freed if appropriate by the subsequent do_munmap(). Whereas 1ecfd533f4c5 did an unconditional pud_free() of a most-likely still-in-use pud: saved only by the near-impossiblity of pmd_alloc() failing.
---
mm/mremap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
mm/mremap.c renamed from mm/mremap.c~mm-revert-mremap-pud_free-anti-fix +1 -4
@@ -25,7 +25,6 @@#include <asm/uaccess.h> #include <asm/cacheflush.h> #include <asm/tlbflush.h> -#include <asm/pgalloc.h> #include "internal.h"
@@ -63,10 +62,8 @@ static pmd_t *alloc_new_pmd(struct mm_streturn NULL ; pmd =pmd_alloc (mm, pud, addr); -if (!pmd) { -pud_free (mm, pud); +if (!pmd)return NULL ; - }VM_BUG_ON (pmd_trans_huge (*pmd));
_
Patches currently in -mm which might be from [email protected] are
origin.patch
linux-next.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 swap-fix-setting-page_size-blocksize-during-swapoff-swapon-race.patch mm-rearrange-madvise-code-to-allow-for-reuse.patch mm-add-a-field-to-store-names-for-private-anonymous-memory.patch swap-add-a-simple-detector-for-inappropriate-swapin-readahead.patch mm-drop-actor-argument-of-do_generic_file_read.patch mm-drop-actor-argument-of-do_generic_file_read-fix.patch