Re: mm/vmemmap: fix wrong use of virt_to_page

2012-11-27 Thread Michal Hocko
On Tue 27-11-12 10:17:13, Jianguo Wu wrote: > I enable CONFIG_DEBUG_VIRTUAL and CONFIG_SPARSEMEM_VMEMMAP, when doing memory > hotremove, > there is a kernel BUG at arch/x86/mm/physaddr.c:20. > > It is caused by free_section_usemap()->virt_to_page(), > virt_to_page() is only used for kernel direct

Re: mm/vmemmap: fix wrong use of virt_to_page

2012-11-26 Thread Wen Congyang
At 11/27/2012 10:17 AM, Jianguo Wu Wrote: > I enable CONFIG_DEBUG_VIRTUAL and CONFIG_SPARSEMEM_VMEMMAP, when doing memory > hotremove, > there is a kernel BUG at arch/x86/mm/physaddr.c:20. > > It is caused by free_section_usemap()->virt_to_page(), > virt_to_page() is only used for kernel direct m

Re: mm/vmemmap: fix wrong use of virt_to_page

2012-11-26 Thread Yasuaki Ishimatsu
2012/11/27 11:17, Jianguo Wu wrote: I enable CONFIG_DEBUG_VIRTUAL and CONFIG_SPARSEMEM_VMEMMAP, when doing memory hotremove, there is a kernel BUG at arch/x86/mm/physaddr.c:20. It is caused by free_section_usemap()->virt_to_page(), virt_to_page() is only used for kernel direct mapping address,

Re: mm/vmemmap: fix wrong use of virt_to_page

2012-11-26 Thread Johannes Weiner
On Tue, Nov 27, 2012 at 10:17:13AM +0800, Jianguo Wu wrote: > I enable CONFIG_DEBUG_VIRTUAL and CONFIG_SPARSEMEM_VMEMMAP, when doing memory > hotremove, > there is a kernel BUG at arch/x86/mm/physaddr.c:20. > > It is caused by free_section_usemap()->virt_to_page(), > virt_to_page() is only used f