login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
13
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/load_freelist:/SlabDebug path
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Pekka Enberg <penberg@...>
To: Benny Halevy <bhalevy@...>
Cc: Christoph Lameter <clameter@...>, Linux Kernel <linux-kernel@...>
Subject:
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/load_freelist:/SlabDebug path
Date: Tuesday, May 13, 2008 - 2:14 am
On Mon, May 12, 2008 at 11:32 PM, Benny Halevy <bhalevy@panasas.com> wrote:
quoted text
> In the __slab_alloc()/load_freelist:/SlabDebug(c->page) path we only > use the object at the head of c->page->freelist > and the tail goes back to c->page->freelist. > We then set c->node = -1 to force __slab_alloc in next allocation. > c->freelist therefore needs to be cleared as it is invalid at this point. > > @@ -1606,6 +1606,7 @@ debug: > if (!alloc_debug_processing(s, c->page, object, addr)) > goto another_slab; > > + c->freelist = NULL; > c->page->inuse++; > c->page->freelist = object[c->offset]; > c->node = -1;
Makes sense. Christoph? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] SLUB: clear c->freelist in __slab_alloc()/load_fr...
, Benny Halevy
, (Mon May 12, 4:32 pm)
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa...
, Pekka Enberg
, (Tue May 13, 2:40 pm)
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa...
, Benny Halevy
, (Tue May 13, 3:34 pm)
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa...
, Christoph Lameter
, (Wed May 14, 1:44 pm)
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa...
, Benny Halevy
, (Wed May 14, 1:54 pm)
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa...
, Christoph Lameter
, (Wed May 14, 1:58 pm)
Re: [PATCH] SLUB: clear c->freelist in __slab_alloc()/loa...
, Pekka Enberg
, (Tue May 13, 2:14 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
James Bottomley
Re: Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
majkls
sys_chroot+sys_fchdir Fix
Paul Mackerras
Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
git-commits-head
:
Colocation donated by:
Who's online
There are currently
4 users
and
944 guests
online.
Online users
strcmp
tgrey
roundtheruggedd
johnpresley
Syndicate