forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit182f3d7
mm/page_alloc.c: skip setting nodemask when we are in interrupt
When we are in the interrupt context, it is irrelevant to the current taskcontext. If we use current task's mems_allowed, we can be fair to allocpages in the fast path and fall back to slow path memory allocation whenthe current node(which is the current task mems_allowed) does not haveenough memory to allocate. In this case, it slows down the memoryallocation speed of interrupt context. So we can skip setting thenodemask to allow any node to allocate memory, so that fast pathallocation can success.Signed-off-by: Muchun Song <songmuchun@bytedance.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Reviewed-by: Pekka Enberg <penberg@kernel.org>Cc: David Hildenbrand <david@redhat.com>Link:http://lkml.kernel.org/r/20200706025921.53683-1-songmuchun@bytedance.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parentda41566 commit182f3d7
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4788 | 4788 | | |
4789 | 4789 | | |
4790 | 4790 | | |
4791 | | - | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
4792 | 4796 | | |
4793 | 4797 | | |
4794 | 4798 | | |
| |||
0 commit comments
Comments
(0)