login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
13
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Yasunori Goto <y-goto@...>
To: Andrew Morton <akpm@...>
Cc: Andy Whitcroft <apw@...>, Paul Mundt <lethal@...>, <linux-kernel@...>, <linux-mm@...>
Subject:
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
Date: Thursday, September 13, 2007 - 10:02 pm
> On Tue, 11 Sep 2007 18:37:12 +0900 Yasunori Goto <y-goto@jp.fujitsu.com> wrote:
quoted text
> > > > > > > + if (onlined_pages){ > > > > > > Nit, needs a space there before the '{'. > > > > Ah, Ok. I attached fixed patch in this mail. > > > > > The problem as I see it is that when we boot the system we start a > > > kswapd on all nodes with memory. If the hot-add adds memory to a > > > pre-existing node with no memory we will not start one and we end up > > > with a node with memory and no kswapd. Bad. > > > > > > As kswapd_run is a no-op when a kswapd already exists this seems a safe > > > way to fix that. Paul's ->zone conversion is obviously correct also. > > > > > > Acked-by: Andy Whitcroft <apw@shadowen.org> > > > > Thanks for your explanation. > > You mentioned all of my intention correctly. :-) > > > > > > ---- > > > > Fix kswapd doesn't run when memory is added on memory-less-node. > > Fix compile error of zone->node when CONFIG_NUMA is off. > > > > Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com> > > Signed-off-by: Paul Mundt <lethal@linux-sh.org> > > Acked-by: Andy Whitcroft <apw@shadowen.org> > > > > > > --- > > mm/memory_hotplug.c | 9 ++++----- > > 1 file changed, 4 insertions(+), 5 deletions(-) > > > > Index: current/mm/memory_hotplug.c > > =================================================================== > > --- current.orig/mm/memory_hotplug.c 2007-09-07 18:08:07.000000000 +0900 > > +++ current/mm/memory_hotplug.c 2007-09-11 17:29:19.000000000 +0900 > > @@ -211,10 +211,12 @@ int online_pages(unsigned long pfn, unsi > > online_pages_range); > > zone->present_pages += onlined_pages; > > zone->zone_pgdat->node_present_pages += onlined_pages; > > - if (onlined_pages) > > - node_set_state(zone->node, N_HIGH_MEMORY); > > > > setup_per_zone_pages_min(); > > + if (onlined_pages) { > > + kswapd_run(zone_to_nid(zone)); > > + node_set_state(zone_to_nid(zone), N_HIGH_MEMORY); > > + } > > > > if (need_zonelists_rebuild) > > build_all_zonelists(); > > @@ -269,9 +271,6 @@ int add_memory(int nid, u64 start, u64 s > > if (!pgdat) > > return -ENOMEM; > > new_pgdat = 1; > > - ret = kswapd_run(nid); > > - if (ret) > > - goto error; > > } > > > > /* call arch's memory hotadd */ > > > > OK, we're getting into a mess here. This patch fixes > update-n_high_memory-node-state-for-memory-hotadd.patch, but which patch > does update-n_high_memory-node-state-for-memory-hotadd.patch fix? > > At present I just whacked > update-n_high_memory-node-state-for-memory-hotadd.patch at the end of > everything, but that was lazy of me and it ends up making a mess.
It is enough. No more patch is necessary for these issues. I already fixed about Andy-san's comment. :-) Thanks. -- Yasunori Goto -
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] mm: Fix memory hotplug + sparsemem build.
, Paul Mundt
, (Tue Sep 11, 3:25 am)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Yasunori Goto
, (Tue Sep 11, 4:18 am)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Andy Whitcroft
, (Tue Sep 11, 5:15 am)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Yasunori Goto
, (Tue Sep 11, 5:37 am)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Andrew Morton
, (Thu Sep 13, 9:44 pm)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Yasunori Goto
, (Thu Sep 13, 10:02 pm)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Andrew Morton
, (Thu Sep 13, 10:41 pm)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Lee Schermerhorn
, (Fri Sep 14, 10:09 am)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Andrew Morton
, (Fri Sep 14, 4:51 pm)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Yasunori Goto
, (Fri Sep 14, 1:14 am)
Re: [PATCH -mm] mm: Fix memory hotplug + sparsemem build.
, Paul Mundt
, (Tue Sep 11, 4:25 am)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Chuck Ebbert
Wanted: simple, safe x86 stack overflow detection
Alan Cox
Re: ndiswrapper and GPL-only symbols redux
Yinghai Lu
[PATCH 03/42] x86: remove irq_vectors_limits
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
しらいしななこ
Re: [ANNOUNCE] GIT 1.5.4
Jan Wielemaker
git filter-branch --subdirectory-filter, still a mistery
Pierre Habouzit
[PATCH] guilt(1): Obvious bashisms fixed.
Christopher Faylor
Re: First cut at git port to Cygwin
openbsd-misc
:
Thilo Pfennig
OpenBSD project goals
Marco Peereboom
Re: Real men don't attack straw men
Daniel Hazelton
Re: Wasting our Freedom
Luke Bakken
Re: No Blob without Puffy
linux-netdev
:
Julius Volz
[PATCHv3 19/24] IVPS: Disable sync daemon for IPv6 connections
Paul Moore
[RFC PATCH v4 04/14] selinux: Fix missing calls to netlbl_skbuff_err()
Dave Jones
odd RTL8139 quirk.
Patrick McHardy
[NET_SCHED 04/15]: act_api: use nlmsg_parse
Latest forum posts
How to exec user process in kernel mode.
1 day ago
Linux kernel
[IPSEC]IPSEC_MANUAL_REQID_MAX
1 day ago
Linux kernel
help in UDP catching module..
2 days ago
Linux kernel
Is there anything like Real-time drivers?
4 days ago
Linux general
ns16550 serail console in Linux 2.6.19
4 days ago
Linux general
what class should i use to register my devices
4 days ago
Linux kernel
reset bios pasword toshiba
5 days ago
Hardware
Analysis of Process Scheduling
6 days ago
Linux kernel
RT Kernel and SSH Server Panics
6 days ago
Linux kernel
Resetting the bios password for Toshiba Laptop
6 days ago
Hardware
Show all forums...
Recent Tags
Linux
-rc4
filesystem
Andrew Morton
H. Peter Anvin
Tux3
-rc5
2.6.27-rc5
Daniel Phillips
Linus Torvalds
2.6.27
-rc
quote
more tags
Colocation donated by:
Who's online
There are currently
3 users
and
844 guests
online.
Online users
Mr_Z
kingneutron
Jeremy
Syndicate
speck-geostationary