Re: [PATCH] powerpc/mm: Use VM_WARN_ONCE() for irqs disabled check

2016-06-28 Thread Michael Ellerman
On Tue, 2016-06-28 at 16:15 +0530, Aneesh Kumar K.V wrote: > Michael Ellerman writes: > > diff --git a/arch/powerpc/include/asm/pgtable.h > > b/arch/powerpc/include/asm/pgtable.h > > index ee09e99097f0..651848039dc4 100644 > > --- a/arch/powerpc/include/asm/pgtable.h > > +++

Re: [PATCH] powerpc/mm: Use VM_WARN_ONCE() for irqs disabled check

2016-06-28 Thread Aneesh Kumar K.V
Michael Ellerman writes: > The check for !arch_irqs_disabled() in find_linux_pte_or_hugepte() is a > debugging aid, and needn't be enabled for production builds. > > Switch it to a VM_WARN_ONCE(), which is compiled out when > CONFIG_DEBUG_VM=n. > > Signed-off-by: Michael

[PATCH] powerpc/mm: Use VM_WARN_ONCE() for irqs disabled check

2016-06-28 Thread Michael Ellerman
The check for !arch_irqs_disabled() in find_linux_pte_or_hugepte() is a debugging aid, and needn't be enabled for production builds. Switch it to a VM_WARN_ONCE(), which is compiled out when CONFIG_DEBUG_VM=n. Signed-off-by: Michael Ellerman ---