Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1424308
| From | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks |
| Date | 2016-06-16 19:50 +0200 |
| Message-ID | <rKJAt-2T5-3@gated-at.bofh.it> (permalink) |
| References | <rKtm1-1aF-3@gated-at.bofh.it> <rKtm1-1aF-11@gated-at.bofh.it> <rKHyF-1EX-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jun 16, 2016 at 8:33 AM, Josh Poimboeuf <jpoimboe@redhat.com> wrote: > On Wed, Jun 15, 2016 at 05:28:26PM -0700, Andy Lutomirski wrote: >> Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a >> zone. This only makes sense if each kernel stack exists entirely in >> one zone, and allowing vmapped stacks could break this assumption. >> >> It turns out that the code for tracking kernel stack allocations in >> units of pages is slightly simpler, so just switch to counting >> pages. >> >> Cc: Vladimir Davydov <vdavydov@virtuozzo.com> >> Cc: Johannes Weiner <hannes@cmpxchg.org> >> Cc: Michal Hocko <mhocko@kernel.org> >> Cc: linux-mm@kvack.org >> Signed-off-by: Andy Lutomirski <luto@kernel.org> >> --- >> fs/proc/meminfo.c | 2 +- >> kernel/fork.c | 3 ++- >> mm/page_alloc.c | 3 +-- >> 3 files changed, 4 insertions(+), 4 deletions(-) > > You missed another usage of NR_KERNEL_STACK in drivers/base/node.c. Thanks. The real reason I cc'd you was so you could look at rewind_stack_do_exit and the sneaky trick I did in no_context in the last patch, though. :) Both survive objtool, but I figured I'd check with objtool's author as well. If there was a taint bit I could set saying "kernel is hosed -- don't try to apply live patches any more", I'd have extra confidence. --Andy
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks Andy Lutomirski <luto@kernel.org> - 2016-06-16 02:30 +0200
Re: [PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks Josh Poimboeuf <jpoimboe@redhat.com> - 2016-06-16 17:40 +0200
Re: [PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks Andy Lutomirski <luto@amacapital.net> - 2016-06-16 19:50 +0200
Re: [PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks Josh Poimboeuf <jpoimboe@redhat.com> - 2016-06-16 21:40 +0200
Re: [PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks Andy Lutomirski <luto@amacapital.net> - 2016-06-16 19:30 +0200
Re: [PATCH 04/13] mm: Track NR_KERNEL_STACK in pages instead of number of stacks Andy Lutomirski <luto@amacapital.net> - 2016-06-16 21:30 +0200
csiph-web