diff options
author | Jérôme Glisse <[email protected]> | 2017-06-24 14:05:14 -0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-06-26 11:44:19 +0200 |
commit | 98fe3633c5a44e5ee3d642907739eb0210407886 (patch) | |
tree | 3408d8dfefe07787adc5bb32946b2a0ae22167e2 /net/lapb/lapb_subr.c | |
parent | c0bc126f97fb929b3ae02c1c62322645d70eb408 (diff) |
x86/mm/hotplug: Fix BUG_ON() after hot-remove by not freeing PUD
Since commit:
af2cf278ef4f ("x86/mm/hotplug: Don't remove PGD entries in remove_pagetable()")
we no longer free PUDs so that we do not have to synchronize
all PGDs on hot-remove/vfree().
But the new 5-level page table patchset reverted that for 4-level
page tables, in the following commit:
f2a6a7050109: ("x86: Convert the rest of the code to support p4d_t")
This patch restores the damage and disables free_pud() if we are in the
4-level page table case, thus avoiding BUG_ON() after hot-remove.
Signed-off-by: Jérôme Glisse <[email protected]>
[ Clarified the changelog and the code comments. ]
Reviewed-by: Kirill A. Shutemov <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Logan Gunthorpe <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions