[PATCH v2] bnx2x: fix assignment of signed expression to unsigned variable

2013-03-24 Thread Kumar Amit Mehta
fix for incorrect assignment of signed expression to unsigned variable. Signed-off-by: Kumar Amit Mehta gmate.a...@gmail.com --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH] documentation: DocBook/media : Fix typo in dvbproperty.xml

2013-03-24 Thread Masanari Iida
Correct spelling typos. Signed-off-by: Masanari Iida standby2...@gmail.com --- Documentation/DocBook/media/dvb/dvbproperty.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/DocBook/media/dvb/dvbproperty.xml

Re: clk: x86: build failure

2013-03-24 Thread Mika Westerberg
On Sat, Mar 23, 2013 at 01:57:01PM -0400, Corey Richardson wrote: With the attached config, I get the following build failure: LD init/built-in.o drivers/built-in.o:clk-lpt.c:function v4l2_device_unregister: error: undefined reference to 'i2c_unregister_device' I get following with

Re: I/O blocked while dirty pages are being flushed

2013-03-24 Thread Eric Wong
Fredrik Tolf fred...@dolda2000.com wrote: It is worth noting, also, that this seems to be a situation introduced somewhere between 2.6.26 and 2.6.32, because I started noticing it when I upgraded from Debian 5.0 to 6.0. I've since tried it on 3.2.0, 3.5.4 and 3.7.1, and it appears in every

[RFC PATCH v2, part4 00/39] Simplify mem_init() implementations and kill num_physpages

2013-03-24 Thread Jiang Liu
The original goal of this patchset is to fix the bug reported by https://bugzilla.kernel.org/show_bug.cgi?id=53501 Now it has also been expanded to reduce common code used by memory initializion. This is the last part, previous three patch sets could be accessed at:

[RFC PATCH v2, part4 03/39] c6x: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. This patch also fixes possible bugs due to current

[RFC PATCH v2, part4 05/39] score: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Generate mandatory global variables _sdata in file vmlinux.lds. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chen Liqin liqin.c...@sunplusct.com Cc: Lennox Wu lennox...@gmail.com Cc: linux-kernel@vger.kernel.org --- arch/score/kernel/vmlinux.lds.S |1 + 1 file changed, 1 insertion(+)

[RFC PATCH v2, part4 06/39] tile: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __init_begin and

[RFC PATCH v2, part4 07/39] UML: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. 1) Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. 2) Export mandatory global variables __bss_stop. 3)

[RFC PATCH v2, part4 08/39] mm: introduce helper function mem_init_print_info() to simplify mem_init()

2013-03-24 Thread Jiang Liu
Introduce helper function mem_init_print_info() to simplify mem_init() across different architectures, which also unifies the format and information printed. Function mem_init_print_info() calculates memory statistics information without walking each page, so it should be a little faster on some

[RFC PATCH v2, part4 09/39] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Cc: David Howells dhowe...@redhat.com Cc: linux-al...@vger.kernel.org

[RFC PATCH v2, part4 09/39] mm: use totalram_pages instead of num_physpages at runtime

2013-03-24 Thread Jiang Liu
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Miklos Szeredi mik...@szeredi.hu Cc: David S. Miller da...@davemloft.net Cc: Alexey Kuznetsov kuz...@ms2.inr.ac.ru Cc: James

[RFC PATCH v2, part4 10/39] mm/alpha: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Henderson r...@twiddle.net Cc: Ivan Kokshaysky i...@jurassic.park.msu.ru Cc: Matt Turner matts...@gmail.com Cc: David Howells dhowe...@redhat.com Cc: linux-al...@vger.kernel.org

[RFC PATCH v2, part4 10/39] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 11/39] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 11/39] mm/ARM: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 12/39] mm/ARM64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Russell King li...@arm.linux.org.uk Cc: Catalin Marinas catalin.mari...@arm.com Cc: Will Deacon will.dea...@arm.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[RFC PATCH v2, part4 12/39] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Haavard Skinnemoen hskinnem...@gmail.com Cc: Hans-Christian Egtvedt egtv...@samfundet.no Cc: linux-kernel@vger.kernel.org (open list) --- arch/avr32/mm/init.c | 29

[RFC PATCH v2, part4 13/39] mm/AVR32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Haavard Skinnemoen hskinnem...@gmail.com Cc: Hans-Christian Egtvedt egtv...@samfundet.no Cc: linux-kernel@vger.kernel.org (open list) --- arch/avr32/mm/init.c | 29

[RFC PATCH v2, part4 13/39] mm/blackfin: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mike Frysinger vap...@gentoo.org Cc: Bob Liu lliu...@gmail.com Cc: uclinux-dist-de...@blackfin.uclinux.org Cc: linux-kernel@vger.kernel.org --- arch/blackfin/mm/init.c | 38

[RFC PATCH v2, part4 14/39] mm/blackfin: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mike Frysinger vap...@gentoo.org Cc: Bob Liu lliu...@gmail.com Cc: uclinux-dist-de...@blackfin.uclinux.org Cc: linux-kernel@vger.kernel.org --- arch/blackfin/mm/init.c | 38

[RFC PATCH v2, part4 14/39] mm/c6x: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mark Salter msal...@redhat.com Cc: Aurelien Jacquiot a-jacqu...@ti.com Cc: linux-c6x-...@linux-c6x.org Cc: linux-kernel@vger.kernel.org --- arch/c6x/mm/init.c | 11 +-- 1 file

[RFC PATCH v2, part4 15/39] mm/c6x: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mark Salter msal...@redhat.com Cc: Aurelien Jacquiot a-jacqu...@ti.com Cc: linux-c6x-...@linux-c6x.org Cc: linux-kernel@vger.kernel.org --- arch/c6x/mm/init.c | 11 +-- 1 file

[RFC PATCH v2, part4 15/39] mm/cris: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mikael Starvik star...@axis.com Cc: Jesper Nilsson jesper.nils...@axis.com Cc: linux-cris-ker...@axis.com Cc: linux-kernel@vger.kernel.org --- arch/cris/mm/init.c | 33

[RFC PATCH v2, part4 16/39] mm/cris: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mikael Starvik star...@axis.com Cc: Jesper Nilsson jesper.nils...@axis.com Cc: linux-cris-ker...@axis.com Cc: linux-kernel@vger.kernel.org --- arch/cris/mm/init.c | 33

[RFC PATCH v2, part4 16/39] mm/frv: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: David Howells dhowe...@redhat.com Cc: Andi Kleen a...@linux.intel.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

[RFC PATCH v2, part4 17/39] mm/frv: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: David Howells dhowe...@redhat.com Cc: Andi Kleen a...@linux.intel.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc:

[RFC PATCH v2, part4 17/39] mm/h8300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Yoshinori Sato ys...@users.sourceforge.jp Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/h8300/mm/init.c | 34 --

[RFC PATCH v2, part4 18/39] mm/h8300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Yoshinori Sato ys...@users.sourceforge.jp Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/h8300/mm/init.c | 34 --

[RFC PATCH v2, part4 19/39] mm/hexagon: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Kuo r...@codeaurora.org Cc: linux-hexa...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/hexagon/mm/init.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[RFC PATCH v2, part4 19/39] mm/IA64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Andrew Morton a...@linux-foundation.org Cc: Zhang Yanfei zhangyan...@cn.fujitsu.com Cc: linux-i...@vger.kernel.org

[RFC PATCH v2, part4 20/39] mm/IA64: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Tony Luck tony.l...@intel.com Cc: Fenghua Yu fenghua...@intel.com Cc: Andrew Morton a...@linux-foundation.org Cc: Zhang Yanfei zhangyan...@cn.fujitsu.com Cc: linux-i...@vger.kernel.org

[RFC PATCH v2, part4 20/39] mm/m32r: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Hirokazu Takata tak...@linux-m32r.org Cc: linux-m...@ml.linux-m32r.org Cc: linux-m32r...@ml.linux-m32r.org Cc: linux-kernel@vger.kernel.org --- arch/m32r/mm/discontig.c |6 +-

[RFC PATCH v2, part4 21/39] mm/m32r: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Hirokazu Takata tak...@linux-m32r.org Cc: linux-m...@ml.linux-m32r.org Cc: linux-m32r...@ml.linux-m32r.org Cc: linux-kernel@vger.kernel.org --- arch/m32r/mm/discontig.c |6 +-

[RFC PATCH v2, part4 22/39] mm/m68k: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: Greg Ungerer g...@uclinux.org Cc: linux-m...@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/m68k/mm/init.c | 31

[RFC PATCH v2, part4 22/39] mm/microblaze: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Michal Simek mon...@monstr.eu Cc: microblaze-ucli...@itee.uq.edu.au Cc: linux-kernel@vger.kernel.org --- arch/microblaze/mm/init.c | 51 ++--- 1

[RFC PATCH v2, part4 23/39] mm/microblaze: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Michal Simek mon...@monstr.eu Cc: microblaze-ucli...@itee.uq.edu.au Cc: linux-kernel@vger.kernel.org --- arch/microblaze/mm/init.c | 51 ++--- 1

[RFC PATCH v2, part4 23/39] mm/MIPS: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Ralf Baechle r...@linux-mips.org Cc: David Daney david.da...@cavium.com Cc: Arnd Bergmann a...@arndb.de Cc: Jiri Kosina jkos...@suse.cz Cc: John Crispin blo...@openwrt.org Cc: Greg

[RFC PATCH v2, part4 24/39] mm/MIPS: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Ralf Baechle r...@linux-mips.org Cc: David Daney david.da...@cavium.com Cc: Arnd Bergmann a...@arndb.de Cc: Jiri Kosina jkos...@suse.cz Cc: John Crispin blo...@openwrt.org Cc: Greg

[RFC PATCH v2, part4 24/39] mm/mn10300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: David Howells dhowe...@redhat.com Cc: Koichi Yasutake yasutake.koi...@jp.panasonic.com Cc: linux-am33-l...@redhat.com Cc: linux-kernel@vger.kernel.org --- arch/mn10300/mm/init.c | 26

[RFC PATCH v2, part4 25/39] mm/mn10300: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: David Howells dhowe...@redhat.com Cc: Koichi Yasutake yasutake.koi...@jp.panasonic.com Cc: linux-am33-l...@redhat.com Cc: linux-kernel@vger.kernel.org --- arch/mn10300/mm/init.c | 26

[RFC PATCH v2, part4 25/39] mm/openrisc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Jonas Bonn jo...@southpole.se Cc: David Howells dhowe...@redhat.com Cc: Arnd Bergmann a...@arndb.de Cc: li...@lists.openrisc.net Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 26/39] mm/openrisc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Jonas Bonn jo...@southpole.se Cc: David Howells dhowe...@redhat.com Cc: Arnd Bergmann a...@arndb.de Cc: li...@lists.openrisc.net Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 26/39] mm/PARISC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: James E.J. Bottomley j...@parisc-linux.org Cc: Helge Deller del...@gmx.de Cc: Thomas Gleixner t...@linutronix.de Cc: Michal Hocko mho...@suse.cz Cc: David Rientjes rient...@google.com Cc:

[RFC PATCH v2, part4 27/39] mm/PARISC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: James E.J. Bottomley j...@parisc-linux.org Cc: Helge Deller del...@gmx.de Cc: Thomas Gleixner t...@linutronix.de Cc: Michal Hocko mho...@suse.cz Cc: David Rientjes rient...@google.com Cc:

[RFC PATCH v2, part4 27/39] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/mm/mem.c | 56

[RFC PATCH v2, part4 28/39] mm/ppc: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org --- arch/powerpc/mm/mem.c | 56

[RFC PATCH v2, part4 28/39] mm/s390: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Martin Schwidefsky schwidef...@de.ibm.com Cc: Heiko Carstens heiko.carst...@de.ibm.com Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 29/39] mm/s390: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Martin Schwidefsky schwidef...@de.ibm.com Cc: Heiko Carstens heiko.carst...@de.ibm.com Cc: linux...@de.ibm.com Cc: linux-s...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 29/39] mm/score: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chen Liqin liqin.c...@sunplusct.com Cc: Lennox Wu lennox...@gmail.com Cc: linux-kernel@vger.kernel.org --- arch/score/mm/init.c | 26 ++ 1 file changed, 2

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-24 Thread Li Zefan
Thanks for identifying and fixing this. Li is right. The cache name will live long, but this is because the slab/slub caches will strdup it internally. So the actual memcg allocation is short lived. OK, I have totally missed that. Sorry about the confusion. Then all the churn around the

[RFC PATCH v2, part4 30/39] mm/SH: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Paul Mundt let...@linux-sh.org Cc: Wen Congyang we...@cn.fujitsu.com Cc: Tang Chen tangc...@cn.fujitsu.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 31/39] mm/SH: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Paul Mundt let...@linux-sh.org Cc: Wen Congyang we...@cn.fujitsu.com Cc: Tang Chen tangc...@cn.fujitsu.com Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 31/39] mm/SPARC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: David S. Miller da...@davemloft.net Cc: Sam Ravnborg s...@ravnborg.org Cc: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Cc: Tang Chen tangc...@cn.fujitsu.com Cc:

[RFC PATCH v2, part4 32/39] mm/SPARC: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: David S. Miller da...@davemloft.net Cc: Sam Ravnborg s...@ravnborg.org Cc: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Cc: Tang Chen tangc...@cn.fujitsu.com Cc:

[RFC PATCH v2, part4 32/39] mm/tile: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chris Metcalf cmetc...@tilera.com Cc: Bjorn Helgaas bhelg...@google.com Cc: David S. Miller da...@davemloft.net Cc: Wen Congyang we...@cn.fujitsu.com Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 33/39] mm/tile: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chris Metcalf cmetc...@tilera.com Cc: Bjorn Helgaas bhelg...@google.com Cc: David S. Miller da...@davemloft.net Cc: Wen Congyang we...@cn.fujitsu.com Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 33/39] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Jeff Dike jd...@addtoit.com Cc: Richard Weinberger rich...@nod.at Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c |4 +--- 1

[RFC PATCH v2, part4 34/39] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Jeff Dike jd...@addtoit.com Cc: Richard Weinberger rich...@nod.at Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c |4 +--- 1

[RFC PATCH v2, part4 34/39] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Guan Xuetao g...@mprc.pku.edu.cn Cc: Michal Hocko mho...@suse.cz Cc: David Rientjes rient...@google.com Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49

Re: [PATCH] memcg: fix memcg_cache_name() to use cgroup_name()

2013-03-24 Thread Li Zefan
I read the code as lockdep_assert(memcg_cache_mutex), and then later on mutex_lock(memcg_mutex). But reading again, that was a just an rcu_read_lock(). Good thing it is Friday You guys can add my Acked-by, and thanks again Li, are you ok to take the page via your tree? I don't have a

[RFC PATCH v2, part4 35/39] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Guan Xuetao g...@mprc.pku.edu.cn Cc: Michal Hocko mho...@suse.cz Cc: David Rientjes rient...@google.com Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49

[RFC PATCH v2, part4 35/39] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@redhat.com Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: Andreas Herrmann andreas.herrma...@amd.com Cc: Tang Chen

[RFC PATCH v2, part4 36/39] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@redhat.com Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: Andreas Herrmann andreas.herrma...@amd.com Cc: Tang Chen

[RFC PATCH v2, part4 36/39] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chris Zankel ch...@zankel.net Cc: Max Filippov jcmvb...@gmail.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 37/39] mm: use totalram_pages instead of num_physpages at runtime

2013-03-24 Thread Jiang Liu
The global variable num_physpages is scheduled to be removed, so use totalram_pages instead of num_physpages at runtime. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Miklos Szeredi mik...@szeredi.hu Cc: David S. Miller da...@davemloft.net Cc: Alexey Kuznetsov kuz...@ms2.inr.ac.ru Cc: James

[RFC PATCH v2, part4 37/39] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chris Zankel ch...@zankel.net Cc: Max Filippov jcmvb...@gmail.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 38/39] mm/hotplug: prepare for removing num_physpages

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Wen Congyang we...@cn.fujitsu.com Cc: Tang Chen tangc...@cn.fujitsu.com Cc: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory_hotplug.c |

[RFC PATCH v2, part4 39/39] mm: kill global variable num_physpages

2013-03-24 Thread Jiang Liu
Now all references to num_physpages have been removed, so kill it. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mel Gorman mgor...@suse.de Cc: Michel Lespinasse wal...@google.com Cc: Rik van Riel r...@redhat.com Cc: Jiang Liu jiang@huawei.com Cc: Hugh Dickins hu...@google.com Cc: David

[RFC PATCH v2, part4 30/39] mm/score: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chen Liqin liqin.c...@sunplusct.com Cc: Lennox Wu lennox...@gmail.com Cc: linux-kernel@vger.kernel.org --- arch/score/mm/init.c | 26 ++ 1 file changed, 2

[RFC PATCH v2, part4 21/39] mm/m68k: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: Greg Ungerer g...@uclinux.org Cc: linux-m...@lists.linux-m68k.org Cc: linux-kernel@vger.kernel.org --- arch/m68k/mm/init.c | 31

[RFC PATCH v2, part4 18/39] mm/hexagon: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Richard Kuo r...@codeaurora.org Cc: linux-hexa...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- arch/hexagon/mm/init.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[RFC PATCH v2, part4 34/39] mm/um: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Jeff Dike jd...@addtoit.com Cc: Richard Weinberger rich...@nod.at Cc: user-mode-linux-de...@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org --- arch/um/kernel/mem.c |4 +--- 1

[RFC PATCH v2, part4 35/39] mm/unicore32: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Guan Xuetao g...@mprc.pku.edu.cn Cc: Michal Hocko mho...@suse.cz Cc: David Rientjes rient...@google.com Cc: linux-kernel@vger.kernel.org --- arch/unicore32/mm/init.c | 49

[RFC PATCH v2, part4 36/39] mm/x86: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Thomas Gleixner t...@linutronix.de Cc: Ingo Molnar mi...@redhat.com Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org Cc: Andreas Herrmann andreas.herrma...@amd.com Cc: Tang Chen

[RFC PATCH v2, part4 37/39] mm/xtensa: prepare for removing num_physpages and simplify mem_init()

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages and simplify mem_init(). Signed-off-by: Jiang Liu jiang@huawei.com Cc: Chris Zankel ch...@zankel.net Cc: Max Filippov jcmvb...@gmail.com Cc: Geert Uytterhoeven ge...@linux-m68k.org Cc: linux-xte...@linux-xtensa.org Cc: linux-kernel@vger.kernel.org ---

[RFC PATCH v2, part4 38/39] mm/hotplug: prepare for removing num_physpages

2013-03-24 Thread Jiang Liu
Prepare for removing num_physpages. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Wen Congyang we...@cn.fujitsu.com Cc: Tang Chen tangc...@cn.fujitsu.com Cc: Yasuaki Ishimatsu isimatu.yasu...@jp.fujitsu.com Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/memory_hotplug.c |

[RFC PATCH v2, part4 39/39] mm: kill global variable num_physpages

2013-03-24 Thread Jiang Liu
Now all references to num_physpages have been removed, so kill it. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Mel Gorman mgor...@suse.de Cc: Michel Lespinasse wal...@google.com Cc: Rik van Riel r...@redhat.com Cc: Jiang Liu jiang@huawei.com Cc: Hugh Dickins hu...@google.com Cc: David

Re: [patch] mm: speedup in __early_pfn_to_nid

2013-03-24 Thread Ingo Molnar
* Russ Anderson r...@sgi.com wrote: --- linux.orig/mm/page_alloc.c2013-03-19 16:09:03.736450861 -0500 +++ linux/mm/page_alloc.c 2013-03-22 17:07:43.895405617 -0500 @@ -4161,10 +4161,23 @@ int __meminit __early_pfn_to_nid(unsigne { unsigned long start_pfn, end_pfn;

[RFC PATCH v2, part4 01/39] vmlinux.lds: add comments for global variables and clean up useless declarations

2013-03-24 Thread Jiang Liu
This patch documents global variables exported from vmlinux.lds. 1) Add comments about usage guidelines for global variables exported from vmlinux.lds.S. 2) Remove unused __initdata_begin[] and __initdata_end[]. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Arnd Bergmann a...@arndb.de Cc:

[RFC PATCH v2, part4 02/39] avr32: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Normalize global variables exported by vmlinux.lds to conform usage guidelines from include/asm-generic/sections.h. Use _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. Signed-off-by: Jiang Liu jiang@huawei.com Cc:

[RFC PATCH v2, part4 04/39] h8300: normalize global variables exported by vmlinux.lds

2013-03-24 Thread Jiang Liu
Generate mandatory global variables __bss_start/__bss_stop in file vmlinux.lds. Also remove one unused declaration of _text. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Yoshinori Sato ys...@users.sourceforge.jp Cc: Jiang Liu jiang@huawei.com Cc: linux-kernel@vger.kernel.org ---

RE: [PATCH v2] bnx2x: fix assignment of signed expression to unsigned variable

2013-03-24 Thread Dmitry Kravkov
-Original Message- From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On Behalf Of Kumar Amit Mehta Sent: Sunday, March 24, 2013 8:10 AM To: Eilon Greenstein Cc: da...@davemloft.net; dan.carpen...@oracle.com; net...@vger.kernel.org;

[PATCH 1/1] Feature: Support ALPS v6.

2013-03-24 Thread Valyushkov Ivan
Tested on Dell 7720. Works fine. Signed-off-by: Valyushkov Ivan ktopi...@gmail.com --- drivers/input/mouse/alps.c | 464 +--- drivers/input/mouse/alps.h |2 + 2 files changed, 443 insertions(+), 23 deletions(-) diff --git a/drivers/input/mouse/alps.c

Re: [RFC PATCH v2, part4 00/39] Simplify mem_init() implementations and kill num_physpages

2013-03-24 Thread James Bottomley
On Sun, 2013-03-24 at 15:24 +0800, Jiang Liu wrote: The original goal of this patchset is to fix the bug reported by https://bugzilla.kernel.org/show_bug.cgi?id=53501 Now it has also been expanded to reduce common code used by memory initializion. This is the last part, previous three patch

Re: [GIT PULL] nohz: Full dynticks base interface

2013-03-24 Thread Ingo Molnar
* Frederic Weisbecker fweis...@gmail.com wrote: Hi Ingo, This settles the initial ground to start a special full dynticks tree in -tip that we can iterate incrementally to accelerate the development. It is based on tip:sched/core. I tried to rearrange a bit the naming. We are probably

Re: [-next] fs/eventpoll.c:545 suspicious rcu_dereference_check() usage

2013-03-24 Thread Sergey Senozhatsky
On (03/23/13 17:34), Eric Wong wrote: Sergey Senozhatsky sergey.senozhat...@gmail.com wrote: [3.163894] === [3.163895] [ INFO: suspicious RCU usage. ] [3.163897] 3.9.0-rc3-next-20130322-dbg-dirty #1 Not tainted [3.163898]

[GIT PULL] pinctrl fixes for v3.9

2013-03-24 Thread Linus Walleij
Hi Linus, here are some assorted pinctrl fixes for the v3.9 rc series. Just bug fixes, basically. Please pull them in, detailed info in the tag. Yours, Linus Walleij The following changes since commit 6dbe51c251a327e012439c4772097a13df43c5b8: Linux 3.9-rc1 (2013-03-03 15:11:05 -0800) are

Re: [PATCH] net: Add support for handling queueing in hardware

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 10:43:44AM -0400, Ben Collins wrote: On Mar 22, 2013, at 10:33 AM, David Miller da...@davemloft.net wrote: From: Fleming Andy-AFLEMING aflem...@freescale.com Date: Fri, 22 Mar 2013 14:31:50 + It would appear one of our customers is attempting to upstream our

Re: [PATCH v10 04/12] watchdog: add Palmas Watchdog support

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 02:55:14PM +, Ian Lartey wrote: From: Graeme Gregory g...@slimlogic.co.uk Add support for the Palmas watchdog timer which has a timeout configurable from 1s to 128s. Signed-off-by: Graeme Gregory g...@slimlogic.co.uk Signed-off-by: Ian Lartey

Re: [PATCH v10 05/12] watchdog: Kconfig for Palmas watchdog

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 02:55:15PM +, Ian Lartey wrote: Add the Kconfig and Makefile for the Palmas watchdog driver Signed-off-by: Ian Lartey i...@slimlogic.co.uk Signed-off-by: Graeme Gregory g...@slimlogic.co.uk --- I think this patch should be merged with the previous one. Guenter

Re: mfd: Core driver for Winbond chips

2013-03-24 Thread Guenter Roeck
On Sat, Mar 23, 2013 at 10:49:14AM -0700, Guenter Roeck wrote: MFD core driver for various variants of Winbond/Nuvoton SuperIO chips. Signed-off-by: Guenter Roeck li...@roeck-us.net Sorry for sending this twice. I seem to be having trouble with outgoing e-mail being delayed for hours. The

Re: [PATCH] net: Add support for handling queueing in hardware

2013-03-24 Thread Guenter Roeck
On Fri, Mar 22, 2013 at 06:08:40PM -0400, Theodore Ts'o wrote: On Fri, Mar 22, 2013 at 11:39:20AM -0400, Ben Collins wrote: If your company had hardware going to production, you'd want it supported in mainline too, I suspect. And if companies told their hardware partners that they will

[RFC] fsfreeze: moving from uniterruptible to killable

2013-03-24 Thread Marco Stornelli
When a fs is frozen, a process can hang because we wait in uniterruptible state. We give the user the possibility to kill the process. Not-signed-off-by: Marco Stornelli marco.storne...@gmail.com --- --- fs/super.c.orig 2013-03-24 09:56:33.0 +0100 +++ fs/super.c 2013-03-24

Re: hybrid raid1 with trim support

2013-03-24 Thread Markus
Hi! Still the same with 3.8.4 ... anybody? Best regards, Markus Markus schrieb am 12.03.2013: Hello! I created a hybrid raid1 with one ssd and one hdd. Used writemostly and writebehind and put ext4 with discard enabled on it. This setup worked quite well for the last months (last kernel

Re: 3.9-rc3+: reports battery as 0 mWh capacity on thinkpad x60

2013-03-24 Thread Pavel Machek
Hi! pavel@amd:~$ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 0 mWh last full capacity: 0 mWh battery technology: rechargeable design voltage: 14400 mV This worked before... at least it works in 2.6

Re: [RFC PATCH v2, part4 01/39] vmlinux.lds: add comments for global variables and clean up useless declarations

2013-03-24 Thread Arnd Bergmann
On Sunday 24 March 2013, Jiang Liu wrote: This patch documents global variables exported from vmlinux.lds. 1) Add comments about usage guidelines for global variables exported from vmlinux.lds.S. 2) Remove unused __initdata_begin[] and __initdata_end[]. Signed-off-by: Jiang Liu

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-24 Thread Gleb Natapov
On Thu, Mar 21, 2013 at 05:02:15PM -0700, Kevin Hilman wrote: Gleb Natapov g...@redhat.com writes: On Thu, Mar 21, 2013 at 02:33:13PM -0500, Scott Wood wrote: On 03/21/2013 02:16:00 PM, Gleb Natapov wrote: On Thu, Mar 21, 2013 at 01:42:34PM -0500, Scott Wood wrote: On 03/21/2013

Re: I/O blocked while dirty pages are being flushed

2013-03-24 Thread Bart Van Assche
On 03/24/13 06:12, Fredrik Tolf wrote: While this flush is running, I find that many a process goes into disk sleep waiting for the flush to complete. This includes the process manipulating the mmapped file whenever it tries to redirty a page currently waiting to be flushed, but also, for

Re: Caps lock XOR on multiple keyboards?

2013-03-24 Thread Pavel Machek
Hi! On Mon 2012-12-03 23:58:48, Alan Cox wrote: On 3 Dec 2012 16:19:11 -0500 George Spelvin li...@horizon.com wrote: (Not sure who owns this; Cc: to the last few people to touch drivers/tty/vt/keyboard.c.) linux-input is probably the best place to discuss this Added few more ccs. Yes,

  1   2   3   4   5   6   7   8   >