login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
July
»
5
Re: [PATCH 3/7] hugetlb: add allocate function for hugepage migration
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Andi Kleen
Subject:
Re: [PATCH 3/7] hugetlb: add allocate function for hugepage migration
Date: Monday, July 5, 2010 - 2:28 am
On Mon, Jul 05, 2010 at 05:46:29PM +0900, Naoya Horiguchi wrote:
quoted text
> On Fri, Jul 02, 2010 at 11:08:54AM +0200, Andi Kleen wrote: > > On Fri, Jul 02, 2010 at 02:47:22PM +0900, Naoya Horiguchi wrote: > > > We can't use existing hugepage allocation functions to allocate hugepage > > > for page migration, because page migration can happen asynchronously with > > > the running processes and page migration users should call the allocation > > > function with physical addresses (not virtual addresses) as arguments. > > > > I looked through this patch and didn't see anything bad. Some more > > eyes familiar with hugepages would be good though. > > Yes. > > > Since there are now so many different allocation functions some > > comments on when they should be used may be useful too > > OK. How about this? > > +/* > + * This allocation function is useful in the context where vma is irrelevant. > + * E.g. soft-offlining uses this function because it only cares physical > + * address of error page. > + */
Looks good thanks.
quoted text
> +struct page *alloc_huge_page_node(struct hstate *h, int nid) > +{ > > BTW, I don't like this function name very much. > Since the most significant difference of this function to alloc_huge_page() > is lack of vma argument, so I'm going to change the name to > alloc_huge_page_no_vma_node() in the next version if it is no problem. > > Or, since the postfix like "_no_vma" is verbose, I think it might be > a good idea to rename present alloc_huge_page() to alloc_huge_page_vma(). > Is this worthwhile?
Yes, in a separate patch -Andi --
ak@linux.intel.com
-- Speaking for myself only. --
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 3/7] hugetlb: add allocate function for hugepage mi ...
, Naoya Horiguchi
, (Thu Jul 1, 10:47 pm)
Re: [PATCH 3/7] hugetlb: add allocate function for hugepag ...
, Andi Kleen
, (Fri Jul 2, 2:08 am)
Re: [PATCH 3/7] hugetlb: add allocate function for hugepag ...
, Naoya Horiguchi
, (Mon Jul 5, 1:46 am)
Re: [PATCH 3/7] hugetlb: add allocate function for hugepag ...
, Andi Kleen
, (Mon Jul 5, 2:28 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
S K
Re: cpufreq doesn't seem to work in Intel Q9300
Eric W. Biederman
[PATCH 8/8] sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairsched
Bart Van Assche
Re: Is gcc thread-unsafe?
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
git
:
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] git-mv: Keep moved index entries inact
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Colocation donated by:
Syndicate