Re: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-05 Thread Christoph Lameter
On Mon, 5 Nov 2012, 锟斤拷锟斤拷 wrote: > I guarantee that x86-64 don't use gs register here. run test again锟斤拷 > Maybe there is some optimizations for __this_cpu_read call on x86-64锟斤拷 not > sure. There is no optimization that I know of unless the compiler eliminated the __this_cpu_read completely. gs

Re: [PATCH] slub: remove one code path and reduce lock contention in __slab_free()

2012-07-27 Thread Christoph Lameter
On Sat, 28 Jul 2012, Joonsoo Kim wrote: > Subject and commit log are changed from v1. That looks a bit better. But the changelog could use more cleanup and clearer expression. > @@ -2490,25 +2492,17 @@ static void __slab_free(struct kmem_cache *s, struct > page *page, > return;

Re: [RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-07-27 Thread Christoph Lameter
On Sat, 28 Jul 2012, Joonsoo Kim wrote: > move_pages() syscall may return success in case that > do_move_page_to_node_array return positive value which means migration failed. Nope. It only means that the migration for some pages has failed. This may still be considered successful for the app if

Re: [RESEND PATCH 2/4 v3] mm: fix possible incorrect return value of migrate_pages() syscall

2012-07-27 Thread Christoph Lameter
On Sat, 28 Jul 2012, Joonsoo Kim wrote: > do_migrate_pages() can return the number of pages not migrated. > Because migrate_pages() syscall return this value directly, > migrate_pages() syscall may return the number of pages not migrated. > In fail case in migrate_pages() syscall, we should return

Re: [PATCH] slub: remove one code path and reduce lock contention in __slab_free()

2012-07-30 Thread Christoph Lameter
On Sat, 28 Jul 2012, JoonSoo Kim wrote: > 2012/7/28 Christoph Lameter : > > On Sat, 28 Jul 2012, Joonsoo Kim wrote: > > > >> Subject and commit log are changed from v1. > > > > That looks a bit better. But the changelog could use more cleanup and > >

Re: [RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-07-30 Thread Christoph Lameter
On Sat, 28 Jul 2012, JoonSoo Kim wrote: > 2012/7/28 Christoph Lameter : > > On Sat, 28 Jul 2012, Joonsoo Kim wrote: > > > >> move_pages() syscall may return success in case that > >> do_move_page_to_node_array return positive value which means migration > &g

Re: [RESEND PATCH 2/4 v3] mm: fix possible incorrect return value of migrate_pages() syscall

2012-07-30 Thread Christoph Lameter
On Sat, 28 Jul 2012, JoonSoo Kim wrote: > 2012/7/28 Christoph Lameter : > > On Sat, 28 Jul 2012, Joonsoo Kim wrote: > > > >> do_migrate_pages() can return the number of pages not migrated. > >> Because migrate_pages() syscall return this value directly, > >&

Re: [RESEND PATCH 4/4 v3] mm: fix possible incorrect return value of move_pages() syscall

2012-07-31 Thread Christoph Lameter
On Tue, 31 Jul 2012, JoonSoo Kim wrote: > In man page, there is following statement. > "status is an array of integers that return the status of each page. The > array > only contains valid values if move_pages() did not return an error." > And current implementation of move_pages() syscall doe

Re: [PATCH v3 05/16] consider a memcg parameter in kmem_create_cache

2012-09-24 Thread Christoph Lameter
On Mon, 24 Sep 2012, Glauber Costa wrote: > But that is orthogonal, isn't it? People will still expect to see it in > the old slabinfo file. The current scheme for memory statistics is /proc/meminfo contains global counters /sys/devices/system/node/nodeX/meminfo contains node specific counters

Re: [PATCH v3 05/16] consider a memcg parameter in kmem_create_cache

2012-09-24 Thread Christoph Lameter
On Mon, 24 Sep 2012, Glauber Costa wrote: > The reason I say it is orthogonal, is that people will still want to see > their caches in /proc/slabinfo, regardless of wherever else they'll be. > It was a requirement from Pekka in one of the first times I posted this, > IIRC. They want to see total

Re: [PATCH v3 05/16] consider a memcg parameter in kmem_create_cache

2012-09-24 Thread Christoph Lameter
On Mon, 24 Sep 2012, Glauber Costa wrote: > > So Christoph is proposing that the new caches appear somewhere under > > the cgroups directory and /proc/slabinfo includes aggregated counts, > > right? I'm certainly OK with that. > > > Just for clarification, I am not sure about the aggregate counts

Re: [PATCH v3 05/16] consider a memcg parameter in kmem_create_cache

2012-09-24 Thread Christoph Lameter
On Mon, 24 Sep 2012, Pekka Enberg wrote: > So Christoph is proposing that the new caches appear somewhere under > the cgroups directory and /proc/slabinfo includes aggregated counts, > right? I'm certainly OK with that. Caches would appear either in cgroup/slabinfo (which would have the same form

Re: [PATCH] slab: Ignore internal flags in cache creation

2012-09-25 Thread Christoph Lameter
On Tue, 25 Sep 2012, Glauber Costa wrote: > No cache should ever pass those as a creation flags. We can just ignore > this bit if it happens to be passed (such as when duplicating a cache in > the kmem memcg patches) Acked-by: Christoph Lameter -- To unsubscribe from this list: send

Re: [PATCH v3 06/16] memcg: infrastructure to match an allocation to the right cache

2012-09-25 Thread Christoph Lameter
On Tue, 25 Sep 2012, Glauber Costa wrote: > >> 1) Do like the events mechanism and allocate this in a separate > >> structure. Add a pointer chase in the access, and I don't think it helps > >> much because it gets allocated anyway. But we could at least > >> defer it to the time when we limit the

Re: [PATCH] slab: Ignore internal flags in cache creation

2012-09-26 Thread Christoph Lameter
On Tue, 25 Sep 2012, David Rientjes wrote: > Nack, this is already handled by CREATE_MASK in the mm/slab.c allocator; CREATE_MASK defines legal flags that can be specified. Other flags cause and error. This is about flags that are internal that should be ignored when specified. I think it makes

Re: [PATCH] slub: Use the correct per cpu slab on CPU_DEAD

2012-10-30 Thread Christoph Lameter
off-by: Christoph Lameter Index: linux/mm/slub.c === --- linux.orig/mm/slub.c2012-10-30 10:23:33.040649727 -0500 +++ linux/mm/slub.c 2012-10-30 10:25:03.401312250 -0500 @@ -1874,10 +1874,10 @@ redo: * * This function m

Re: [PATCH v2 1/2] kmem_cache: include allocators code directly into slab_common

2012-10-30 Thread Christoph Lameter
On Fri, 26 Oct 2012, JoonSoo Kim wrote: > 2012/10/25 Christoph Lameter : > > On Wed, 24 Oct 2012, Pekka Enberg wrote: > > > >> So I hate this patch with a passion. We don't have any fastpaths in > >> mm/slab_common.c nor should we. Those should be allo

Re: [guv 00/16] [RFC] percpu: Replace __get_cpu_var uses throughout the kernel

2013-08-26 Thread Christoph Lameter
On Fri, 23 Aug 2013, Tejun Heo wrote: > * It would be a lot easier to route the patches if each had cc's to > the maintainers of the affected subsystems. So the drivers patch needs to CC all driver maintainers? There must be some easier way to get this done. > * Dunno what's the convention ar

Re: [guv 04/16] core: Convert __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
On Mon, 26 Aug 2013, Steven Rostedt wrote: > As Tejun said, each commit needs its own change log. Never expect a > change lgo from another commit to be read for changes in this commit. I can copy the intro into each of the patches? > > Index: linux/kernel/time/tick-oneshot.c > > Index: linux/ker

[guv v2 00/31] percpu v2: Replace __get_cpu_var uses throughout the kernel

2013-08-26 Thread Christoph Lameter
V1->V2: - Break up larger patches. - CC maintainers - Include description in each patch. __get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable o

[guv v2 03/31] Coccinelle script for __get_cpu_var conversion

2013-08-26 Thread Christoph Lameter
Much of the work was done by this coccinelle script. Wont catch everything (since coccinelle aborts when it no longer can make sense out of macros, sigh) but it covers a lot of ground. Signed-off-by: Christoph Lameter Index: linux/scripts/coccinelle/convert/__get_cpu_var.cocci

[guv v2 02/31] percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays

2013-08-26 Thread Christoph Lameter
__verify_pcpu_ptr() will cause a compilation failure if the type of the pointer is a pointer to a fixed array of objects. Adding zero to the pointer converts the type of pointer to that pointing to a single object of the array. Signed-off-by: Christoph Lameter Index: linux/include/linux/percpu

[guv v2 01/31] x86: Use this_cpu_inc/dec for debug registers

2013-08-26 Thread Christoph Lameter
I think this patch already exists in one form or another in some x86 tree. Signed-off-by: Christoph Lameter Index: linux/arch/x86/include/asm/debugreg.h === --- linux.orig/arch/x86/include/asm/debugreg.h 2013-08-06 13:52

[guv v2 11/31] percpu: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 01/31] x86: Use this_cpu_inc/dec for debug registers

2013-08-26 Thread Christoph Lameter
I think this patch already exists in one form or another in some x86 tree. Signed-off-by: Christoph Lameter Index: linux/arch/x86/include/asm/debugreg.h === --- linux.orig/arch/x86/include/asm/debugreg.h 2013-08-06 13:52

[guv v2 22/31] arm: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 00/31] percpu v2: Replace __get_cpu_var uses throughout the kernel

2013-08-26 Thread Christoph Lameter
V1->V2: - Break up larger patches. - CC maintainers - Include description in each patch. __get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable o

[guv v2 04/31] net: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 02/31] percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays

2013-08-26 Thread Christoph Lameter
__verify_pcpu_ptr() will cause a compilation failure if the type of the pointer is a pointer to a fixed array of objects. Adding zero to the pointer converts the type of pointer to that pointing to a single object of the array. Signed-off-by: Christoph Lameter Index: linux/include/linux/percpu

[guv v2 13/31] kernel misc: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 14/31] drivers: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 19/31] ia64: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 15/31] zcache/zsmalloc: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 09/31] block: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 08/31] tracing: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 03/31] Coccinelle script for __get_cpu_var conversion

2013-08-26 Thread Christoph Lameter
Much of the work was done by this coccinelle script. Wont catch everything (since coccinelle aborts when it no longer can make sense out of macros, sigh) but it covers a lot of ground. Signed-off-by: Christoph Lameter Index: linux/scripts/coccinelle/convert/__get_cpu_var.cocci

[guv v2 21/31] sparc: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 16/31] x86: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 01/31] x86: Use this_cpu_inc/dec for debug registers

2013-08-26 Thread Christoph Lameter
I think this patch already exists in one form or another in some x86 tree. Signed-off-by: Christoph Lameter Index: linux/arch/x86/include/asm/debugreg.h === --- linux.orig/arch/x86/include/asm/debugreg.h 2013-08-06 13:52

[guv v2 10/31] rcu: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 06/31] scheduler: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 07/31] mm: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 02/31] percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays

2013-08-26 Thread Christoph Lameter
__verify_pcpu_ptr() will cause a compilation failure if the type of the pointer is a pointer to a fixed array of objects. Adding zero to the pointer converts the type of pointer to that pointing to a single object of the array. Signed-off-by: Christoph Lameter Index: linux/include/linux/percpu

[guv v2 05/31] time: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 17/31] mips: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 00/31] percpu v2: Replace __get_cpu_var uses throughout the kernel

2013-08-26 Thread Christoph Lameter
V1->V2: - Break up larger patches. - CC maintainers - Include description in each patch. __get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable o

[guv v2 12/31] watchdog: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[guv v2 20/31] powerpc: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 18/31] s390: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

[guv v2 25/31] avr32: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Others usage cases are for storing and retrievin

[guv v2 29/31] parisc: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Others usage cases are for storing and retrievin

Re: [guv v2 02/31] percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays

2013-08-26 Thread Christoph Lameter
Sorry about the dups. I had an " missing in an CC statement which caused the mailer to continue to allocate memory until it went oom. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger

[guv v2 31/31] Remove __get_cpu_var and __raw_get_cpu_var macros

2013-08-26 Thread Christoph Lameter
No user is left in the kernel source tree. Therefore we can drop the definitions. Signed-off-by: Christoph Lameter Index: linux/include/asm-generic/percpu.h === --- linux.orig/include/asm-generic/percpu.h 2013-08-26 14:40

[guv v2 26/31] alpha: Replace __get_cpu_var

2013-08-26 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Others usage cases are for storing and retrievin

[guv v2 24/31] blackfin: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Others usage cases are for storing and retrievin

[guv v2 03/31] Coccinelle script for __get_cpu_var conversion

2013-08-26 Thread Christoph Lameter
Much of the work was done by this coccinelle script. Wont catch everything (since coccinelle aborts when it no longer can make sense out of macros, sigh) but it covers a lot of ground. Signed-off-by: Christoph Lameter Index: linux/scripts/coccinelle/convert/__get_cpu_var.cocci

[guv v2 27/31] sh: Replace __get_cpu_var uses throughout the kernel

2013-08-26 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Others usage cases are for storing and retrievin

[guv v2 28/31] arc: Replace __get_cpu_var uses throughout the kernel

2013-08-26 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Others usage cases are for storing and retrievin

[guv v2 30/31] metag: Replace __get_cpu_var uses

2013-08-26 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Chris

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-27 Thread Christoph Lameter
On Mon, 26 Aug 2013, Chris Metcalf wrote: > On 8/26/2013 4:56 PM, Christoph Lameter wrote: > > Index: linux/arch/tile/include/asm/irqflags.h > > === > > --- linux.orig/arch/tile/include/asm/irqflags.h

Re: [guv 00/16] [RFC] percpu: Replace __get_cpu_var uses throughout the kernel

2013-08-27 Thread Christoph Lameter
On Tue, 27 Aug 2013, Stephen Rothwell wrote: > Hi Christoph, > > On Fri, 23 Aug 2013 19:01:56 + Christoph Lameter wrote: > > > > At the end of the patchset all uses of __get_cpu_var have been removed so > > the macro is removed too. > > However you get thes

Re: [guv v2 20/31] powerpc: Replace __get_cpu_var uses

2013-08-27 Thread Christoph Lameter
On Tue, 27 Aug 2013, Geert Uytterhoeven wrote: > On Mon, Aug 26, 2013 at 10:44 PM, Christoph Lameter wrote: > > __get_cpu_var() is used for multiple purposes in the kernel source. One of > > them is > > address calculation via the form &__get_cpu_var(x). This calcul

Re: [guv v2 28/31] arc: Replace __get_cpu_var uses throughout the kernel

2013-08-28 Thread Christoph Lameter
On Wed, 28 Aug 2013, Vineet Gupta wrote: > On 08/27/2013 08:51 PM, Christoph Lameter wrote: > > On Tue, 27 Aug 2013, Vineet Gupta wrote: > > > >> The other thread about merging logistics doesn't seem to have concluded > >> yet so for > >> now I&#x

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
On Wed, 28 Aug 2013, Chris Metcalf wrote: > Taken into the tile tree, with one extra change; in > arch/tile/kernel/messaging.c, using "__this_cpu_read(msg_state)" > generated warnings ("'pscr_ret__.opaque[1u]' is used uninitialized in > this function", etc), since msg_state is a struct, so I chang

Re: [guv v2 23/31] tile: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph Lameter Index: linux/arch/tile/in

Re: [PATCH v2 1/2] mm: make vmstat_update periodic run conditional

2013-08-28 Thread Christoph Lameter
On Fri, 9 Aug 2013, Gilad Ben-Yossef wrote: > If the code does not consider setting the vmstat_cpus bit in the mask > unless we are running > on a CPU in tickless state, than we will (almost) never set > vmstat_cpus since we will (almost) > never be tickless in a deferrable work - Sorry never got

[gcv v3 01/35] x86: Use this_cpu_inc/dec for debug registers

2013-08-28 Thread Christoph Lameter
I think this patch already exists in one form or another in some x86 tree. Signed-off-by: Christoph Lameter Index: linux/arch/x86/include/asm/debugreg.h === --- linux.orig/arch/x86/include/asm/debugreg.h 2013-08-06 13:52

[gcv v3 00/35] percpu v3: Replace __get_cpu_var

2013-08-28 Thread Christoph Lameter
V2->V3: - Numerous corrections - Patch flow will be through individual maintainers tree. Rest will be merged via percpu tree. - Break up the drivers patch into patches for individual maintainer domains - The patches are available via git from git://gentwo.org/christoph gcv - Drop tile arch portio

[gcv v3 34/35] metag: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Acked-by: James Hogan Sign

[gcv v3 20/35] zcache/zsmalloc: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 27/35] arm: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
rinas Signed-off-by: Christoph Lameter Index: linux/arch/arm/kernel/hw_breakpoint.c === --- linux.orig/arch/arm/kernel/hw_breakpoint.c 2013-08-26 13:48:40.956794980 -0500 +++ linux/arch/arm/kernel/hw_breakpoint.c 2013-08-26 13:48

[gcv v3 09/35] block: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 12/35] watchdog: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 16/35] drivers/oprofile: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 10/35] rcu: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 19/35] drivers: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 02/35] percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays

2013-08-28 Thread Christoph Lameter
__verify_pcpu_ptr() will cause a compilation failure if the type of the pointer is a pointer to a fixed array of objects. Adding zero to the pointer converts the type of pointer to that pointing to a single object of the array. Signed-off-by: Christoph Lameter Index: linux/include/linux/percpu

[gcv v3 11/35] percpu: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 22/35] mips: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 24/35] ia64: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 25/35] powerpc: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 05/35] time: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 07/35] mm: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 13/35] kernel misc: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 08/35] tracing: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 03/35] Coccinelle script for __get_cpu_var conversion

2013-08-28 Thread Christoph Lameter
Much of the work was done by this coccinelle script. Wont catch everything (since coccinelle aborts when it no longer can make sense out of macros, sigh) but it covers a lot of ground. Signed-off-by: Christoph Lameter Index: linux/scripts/coccinelle/convert/__get_cpu_var.cocci

[gcv v3 28/35] blackfin: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
__get_cpu_var() is used for multiple purposes in the kernel source. One of them is address calculation via the form &__get_cpu_var(x). This calculates the address for the instance of the percpu variable of the current processor based on an offset. Other use cases are for storing and retrieving d

[gcv v3 32/35] arc: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Acked-by: Vineet Gupta Sign

[gcv v3 26/35] sparc: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
iller Signed-off-by: Christoph Lameter Index: linux/arch/sparc/include/asm/cpudata_32.h === --- linux.orig/arch/sparc/include/asm/cpudata_32.h 2013-08-22 14:34:54.0 -0500 +++ linux/arch/sparc/include/asm/cpudata_32.h 2013-08-2

[gcv v3 17/35] drivers/net/ethernet/tile: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 14/35] drivers/char: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 23/35] s390: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
stens Signed-off-by: Christoph Lameter Index: linux/arch/s390/include/asm/irq.h === --- linux.orig/arch/s390/include/asm/irq.h 2013-08-22 14:49:17.339583428 -0500 +++ linux/arch/s390/include/asm/irq.h 2013-08-22 14:49:17.327583548

[gcv v3 06/35] scheduler: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 18/35] drivers/leds: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 04/35] net: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 29/35] avr32: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
tvedt Signed-off-by: Christoph Lameter Index: linux/arch/avr32/kernel/kprobes.c === --- linux.orig/arch/avr32/kernel/kprobes.c 2013-08-26 13:25:18.0 -0500 +++ linux/arch/avr32/kernel/kprobes.c 2013-08-26 13:27:09.75848

[gcv v3 21/35] x86: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

[gcv v3 35/35] Remove __get_cpu_var and __raw_get_cpu_var macros [only in 3.13]

2013-08-28 Thread Christoph Lameter
No user is left in the kernel source tree. Therefore we can drop the definitions. [Patch should not be merged until all the replacement patches have been merged. Probably this means hold until the 3.13 merge window] Signed-off-by: Christoph Lameter Index: linux/include/asm-generic/percpu.h

[gcv v3 15/35] drivers/cpuidle: Replace __get_cpu_var uses

2013-08-28 Thread Christoph Lameter
o a per cpu variable DEFINE_PER_CPU(int, y) __get_cpu_var(y) = x; Converts to this_cpu_write(y, x); 6. Increment/Decrement etc of a per cpu variable DEFINE_PER_CPU(int, y); __get_cpu_var(y)++ Converts to this_cpu_inc(y) Signed-off-by: Christoph La

<    1   2   3   4   5   6   7   8   9   10   >