login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
11
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Christoph Lameter
Subject:
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
Date: Thursday, October 11, 2007 - 10:37 am
On Thu, 11 Oct 2007, Akinobu Mita wrote:
quoted text
> This is another approach for the fix.
Looks like the cleanest solution. Acked-by: Christoph Lameter <clameter@sgi.com>
quoted text
> Use cpumask to check whether kmem_cache_cpu_free initalization for > the CPU has already been done or not. > > --- > mm/slub.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > Index: 2.6-mm/mm/slub.c > =================================================================== > --- 2.6-mm.orig/mm/slub.c > +++ 2.6-mm/mm/slub.c > @@ -1959,6 +1959,7 @@ static DEFINE_PER_CPU(struct kmem_cache_ > kmem_cache_cpu)[NR_KMEM_CACHE_CPU]; > > static DEFINE_PER_CPU(struct kmem_cache_cpu *, kmem_cache_cpu_free); > +static cpumask_t kmem_cach_cpu_free_init_once = CPU_MASK_NONE; > > static struct kmem_cache_cpu *alloc_kmem_cache_cpu(struct kmem_cache *s, > int cpu, gfp_t flags) > @@ -2033,8 +2034,13 @@ static void init_alloc_cpu_cpu(int cpu) > { > int i; > > + if (cpu_isset(cpu, kmem_cach_cpu_free_init_once)) > + return; > + > for (i = NR_KMEM_CACHE_CPU - 1; i >= 0; i--) > free_kmem_cache_cpu(&per_cpu(kmem_cache_cpu, cpu)[i], cpu); > + > + cpu_set(cpu, kmem_cach_cpu_free_init_once); > } > > static void __init init_alloc_cpu(void) >
-
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 -mm] slub: fix cpu hotplug offline/online path
, Akinobu Mita
, (Tue Oct 9, 9:13 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Pekka Enberg
, (Tue Oct 9, 10:41 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Tue Oct 9, 11:46 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Pekka Enberg
, (Tue Oct 9, 11:48 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Tue Oct 9, 11:50 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Pekka Enberg
, (Tue Oct 9, 12:02 pm)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Tue Oct 9, 12:15 pm)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Akinobu Mita
, (Wed Oct 10, 5:18 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Wed Oct 10, 10:39 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Akinobu Mita
, (Thu Oct 11, 7:36 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Thu Oct 11, 9:46 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Akinobu Mita
, (Thu Oct 11, 10:24 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Thu Oct 11, 10:36 am)
Re: [PATCH -mm] slub: fix cpu hotplug offline/online path
, Christoph Lameter
, (Thu Oct 11, 10:37 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate