login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
26
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Paul Menage <menage@...>
To: Balaji Rao <balajirrao@...>
Cc: <linux-kernel@...>, <balbir@...>, <containers@...>, <dhaval@...>
Subject:
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller
Date: Wednesday, March 26, 2008 - 3:00 pm
On Wed, Mar 26, 2008 at 11:18 AM, Balaji Rao <balajirrao@gmail.com> wrote:
quoted text
> + > +static s64 cpu_cgroup_read_stat(struct cpu_cgroup_stat *stat, > + enum cpu_cgroup_stat_index idx) > +{ > + int cpu; > + s64 ret = 0; > + for_each_possible_cpu(cpu) > + ret += stat->cpustat[cpu].count[idx];
On a 32-bit architecture I think this could race with a non-atomic update that crosses a 32-bit boundary and get a corrupted result. Paul --
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][-mm] [1/2] Simple stats for cpu resource controller
, Balaji Rao
, (Wed Mar 26, 2:18 pm)
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller
, Peter Zijlstra
, (Wed Mar 26, 3:58 pm)
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller
, Balaji Rao
, (Fri Mar 28, 6:02 am)
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller
, Peter Zijlstra
, (Fri Mar 28, 6:17 am)
Re: [RFC][-mm] [1/2] Simple stats for cpu resource controller
, Paul Menage
, (Wed Mar 26, 3:00 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Andrew Morton
2.6.25-mm1
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
518 guests
online.
Online users
strcmp
Syndicate