login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
14
Re: [RFC/PATCH 4/6] memcg: shmem reclaim helper
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KAMEZAWA Hiroyuki
Subject:
Re: [RFC/PATCH 4/6] memcg: shmem reclaim helper
Date: Wednesday, May 14, 2008 - 1:32 am
On Wed, 14 May 2008 16:23:09 +0800 Li Zefan <lizf@cn.fujitsu.com> wrote:
quoted text
> KAMEZAWA Hiroyuki wrote: > > On Wed, 14 May 2008 16:15:49 +0800 > > Li Zefan <lizf@cn.fujitsu.com> wrote: > > > >>> + while(!progress && --retry) { > >>> + progress = try_to_free_mem_cgroup_pages(mem, gfp_mask); > >>> + } > >> This is wrong. How about: > >> do { > >> ... > >> } while (!progress && --retry); > >> > > Ouch, or retry--.... > > > > retry-- is still wrong, because then after while, retry will be -1, and then: > > + if (!retry) > + return -ENOMEM; >
ok, i'm now rewriting. Thanks, -Kame --
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:
[RFC/PATCH 0/6] memcg: peformance improvement at el. v3
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:02 am)
[RFC/PATCH 1/6] memcg: drop_pages at force_empty.
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:04 am)
[RFC/PATCH 2/6] memcg: remove refcnt
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:07 am)
[RFC/PATCH 3/6] memcg: handle swapcache.
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:08 am)
[RFC/PATCH 4/6] memcg: shmem reclaim helper
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:10 am)
[RFC/PATCH 5/6] memcg: optimize branch
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:11 am)
[RFC/PATCH 6/6] memcg: remove redundant check at charge
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:13 am)
Re: [RFC/PATCH 4/6] memcg: shmem reclaim helper
, Li Zefan
, (Wed May 14, 1:15 am)
Re: [RFC/PATCH 4/6] memcg: shmem reclaim helper
, Li Zefan
, (Wed May 14, 1:23 am)
Re: [RFC/PATCH 4/6] memcg: shmem reclaim helper
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:25 am)
Re: [RFC/PATCH 4/6] memcg: shmem reclaim helper
, KAMEZAWA Hiroyuki
, (Wed May 14, 1:32 am)
Re: [RFC/PATCH 2/6] memcg: remove refcnt
, Li Zefan
, (Wed May 14, 6:42 pm)
Re: [RFC/PATCH 2/6] memcg: remove refcnt
, KAMEZAWA Hiroyuki
, (Wed May 14, 6:57 pm)
Re: [RFC/PATCH 2/6] memcg: remove refcnt
, KAMEZAWA Hiroyuki
, (Wed May 14, 8:34 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Brian Swetland
Re: Attempted summary of suspend-blockers LKML thread
Ray Lee
Re: -mm merge plans for 2.6.23
Florin Malita
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Anton Vorontsov
Re: [PATCH 2/6] mtd: m25p80: Convert to device table matching
Dan Williams
Re: [PATCH] DMA: Correct invalid assumptions in the Kconfig text
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Andi Kleen
Re: RFC: Nagle latency tuning
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
NFSv4: Fix a problem whereby a buggy server can oops the kernel
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Rob Shepherd
x86 hardware for router system
Nick Holland
Re: Install OpenBSD from USB ?
Flickr Photo Map for iPad and iPhone
Thanks for the Great Launch of Flickr Photo Map for iPad + iPhone
Colocation donated by:
Syndicate