Re: [PATCH] slub - Use local_t protection

2007-09-12 Thread Christoph Lameter
On Wed, 5 Sep 2007, Mathieu Desnoyers wrote: > Use local_enter/local_exit for protection in the fast path. Sorry that it took some time to get back to this issue. KS interfered. > @@ -1494,8 +1487,16 @@ new_slab: > c->page = new; > goto load_freelist; > } > - >

Re: [PATCH] slub - Use local_t protection

2007-09-12 Thread Christoph Lameter
On Wed, 5 Sep 2007, Mathieu Desnoyers wrote: Use local_enter/local_exit for protection in the fast path. Sorry that it took some time to get back to this issue. KS interfered. @@ -1494,8 +1487,16 @@ new_slab: c-page = new; goto load_freelist; } - +

Re: [PATCH] slub - Use local_t protection

2007-09-05 Thread Mathieu Desnoyers
* Christoph Lameter ([EMAIL PROTECTED]) wrote: > On Tue, 4 Sep 2007, Mathieu Desnoyers wrote: > > > @@ -1566,12 +1565,13 @@ redo: > > object[c->offset]) != object)) > > goto redo; > > > > - put_cpu(); > > + local_exit(flags); > > if (unlikely((gfpflags &

Re: [PATCH] slub - Use local_t protection

2007-09-05 Thread Mathieu Desnoyers
slub - Use local_t protection Use local_enter/local_exit for protection in the fast path. Depends on the cmpxchg_local slub patch. Changelog: Add new primitives to switch from local critical section to interrupt disabled section. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC:

Re: [PATCH] slub - Use local_t protection

2007-09-05 Thread Mathieu Desnoyers
slub - Use local_t protection Use local_enter/local_exit for protection in the fast path. Depends on the cmpxchg_local slub patch. Changelog: Add new primitives to switch from local critical section to interrupt disabled section. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: Christoph

Re: [PATCH] slub - Use local_t protection

2007-09-05 Thread Mathieu Desnoyers
* Christoph Lameter ([EMAIL PROTECTED]) wrote: On Tue, 4 Sep 2007, Mathieu Desnoyers wrote: @@ -1566,12 +1565,13 @@ redo: object[c-offset]) != object)) goto redo; - put_cpu(); + local_exit(flags); if (unlikely((gfpflags __GFP_ZERO)))

Re: [PATCH] slub - Use local_t protection

2007-09-04 Thread Christoph Lameter
On Tue, 4 Sep 2007, Mathieu Desnoyers wrote: > @@ -1566,12 +1565,13 @@ redo: > object[c->offset]) != object)) > goto redo; > > - put_cpu(); > + local_exit(flags); > if (unlikely((gfpflags & __GFP_ZERO))) > memset(object, 0,

[PATCH] slub - Use local_t protection

2007-09-04 Thread Mathieu Desnoyers
slub - Use local_t protection Use local_enter/local_exit for protection in the fast path. Depends on the cmpxchg_local slub patch. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: Christoph Lameter <[EMAIL PROTECTED]> --- mm/slub.c | 18 ++ 1 file changed, 10

Re: [PATCH] slub - Use local_t protection

2007-09-04 Thread Christoph Lameter
On Tue, 4 Sep 2007, Mathieu Desnoyers wrote: @@ -1566,12 +1565,13 @@ redo: object[c-offset]) != object)) goto redo; - put_cpu(); + local_exit(flags); if (unlikely((gfpflags __GFP_ZERO))) memset(object, 0, c-objsize);