+ slub-fix-high-order-page-allocation-problem-with-__gfp_nofail.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + slub-fix-high-order-page-allocation-problem-with-__gfp_nofail.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 12 Mar 2014 13:11:24 -0700
The patch titled
Subject: slub: fix high order page allocation problem with __GFP_NOFAIL
has been added to the -mm tree. Its filename is
slub-fix-high-order-page-allocation-problem-with-__gfp_nofail.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/slub-fix-high-order-page-allocation-problem-with-__gfp_nofail.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/slub-fix-high-order-page-allocation-problem-with-__gfp_nofail.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: Joonsoo Kim <[email protected]>
Subject: slub: fix high order page allocation problem with __GFP_NOFAIL
SLUB already try to allocate high order page with clearing __GFP_NOFAIL. But, when allocating shadow page for kmemcheck, it missed clearing the flag. This trigger WARN_ON_ONCE() reported by Christian Casteyde.
https://bugzilla.kernel.org/show_bug.cgi?id=65991
https://lkml.org/lkml/2013/12/3/764
This patch fix this situation by using same allocation flag as original allocation.
---
mm/slub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
mm/slub.c renamed from mm/slub.c~slub-fix-high-order-page-allocation-problem-with-__gfp_nofail +3 -2
@@ -1348,11 +1348,12 @@ static struct page *allocate_slab(struct page =alloc_slab_page (alloc_gfp, node, oo);if (unlikely (!page)) { oo = s->min; + alloc_gfp = flags;/* * Allocation may have failed due to fragmentation. * Try a lower order alloc if possible */ - page =alloc_slab_page (flags, node, oo); + page =alloc_slab_page (alloc_gfp, node, oo);if (page)stat (s,ORDER_FALLBACK );
@@ -1362,7 +1363,7 @@ static struct page *allocate_slab(struct && !(s->flags & (SLAB_NOTRACK | DEBUG_DEFAULT_FLAGS))) {int pages =1 <<oo_order (oo); -kmemcheck_alloc_shadow (page,oo_order (oo), flags, node); +kmemcheck_alloc_shadow (page,oo_order (oo), alloc_gfp, node);/* * Objects from caches that have a constructor don't get
_
Patches currently in -mm which might be from [email protected] are
origin.patch kthread-ensure-locality-of-task_struct-allocations.patch slub-fix-high-order-page-allocation-problem-with-__gfp_nofail.patch mm-hugetlb-unify-region-structure-handling.patch mm-hugetlb-improve-cleanup-resv_map-parameters.patch mm-hugetlb-fix-race-in-region-tracking.patch mm-hugetlb-remove-resv_map_put.patch mm-hugetlb-use-vma_resv_map-map-types.patch mm-hugetlb-improve-page-fault-scalability.patch mm-hugetlb-improve-page-fault-scalability-fix.patch mm-hugetlb-mark-some-bootstrap-functions-as-__init.patch mm-compaction-avoid-isolating-pinned-pages.patch mm-compaction-disallow-high-order-page-for-migration-target.patch mm-compaction-do-not-call-suitable_migration_target-on-every-page.patch mm-compaction-change-the-timing-to-check-to-drop-the-spinlock.patch mm-compaction-check-pageblock-suitability-once-per-pageblock.patch mm-compaction-clean-up-code-on-success-of-ballon-isolation.patch mm-compactionc-isolate_freepages_block-small-tuneup.patch mm-compaction-determine-isolation-mode-only-once.patch mm-vmallocc-enhance-vm_map_ram-comment.patch mm-vmallocc-enhance-vm_map_ram-comment-fix.patch page-owners-correct-page-order-when-to-free-page.patch