login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
6
Re: [thisops uV3 08/18] Taskstats: Use this_cpu_ops
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Balbir Singh
Subject:
Re: [thisops uV3 08/18] Taskstats: Use this_cpu_ops
Date: Monday, December 6, 2010 - 7:32 am
* Christoph Lameter <cl@linux.com> [2010-12-01 12:13:44]:
quoted text
> On Wed, 1 Dec 2010, Michael Holzheu wrote: > > > > return -ENOMEM; > > > > > > if (!info) { > > > - int seq = get_cpu_var(taskstats_seqnum)++; > > > - put_cpu_var(taskstats_seqnum); > > > + int seq = this_cpu_inc_return(taskstats_seqnum); > > > > Hmmm, wouldn't seq now always be one more than before? > > > > I think that "seq = get_cpu_var(taskstats_seqnum)++" first assigns > > taskstats_seqnum to seq and then increases the value in contrast to > > this_cpu_inc_return() that returns the already increased value, correct? > > Correct. We need to subtract one from that (which will eliminate the minus > -1 that the inline this_cpu_inc_return creates). >
But that breaks current behaviour, we should probably initialize all of the array to -1? -- Three Cheers, Balbir --
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:
[thisops uV3 00/18] Upgrade of this_cpu_ops V3
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 01/18] percpucounter: Optimize __percpu_count ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 02/18] vmstat: Optimize zone counter modifica ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 03/18] percpu: Generic support for this_cpu_a ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 04/18] x86: Support for this_cpu_add,sub,dec, ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 05/18] x86: Use this_cpu_inc_return for nmi c ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 06/18] vmstat: Use this_cpu_inc_return for vm ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 07/18] highmem: Use this_cpu_xx_return() oper ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 08/18] Taskstats: Use this_cpu_ops
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 09/18] fs: Use this_cpu_xx operations in buffer.c
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 10/18] x86: Use this_cpu_ops to optimize code
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 11/18] x86: Use this_cpu_ops for current_cpu_ ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 12/18] Core: Replace __get_cpu_var with __thi ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 13/18] drivers: Replace __get_cpu_var with __ ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 14/18] lguest: Use this_cpu_ops
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 15/18] Xen: Use this_cpu_ops
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 16/18] kprobes: Use this_cpu_ops
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 17/18] Connector: Use this_cpu operations
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
[thisops uV3 18/18] Fakekey: Simplify speakup_fake_key_pre ...
, Christoph Lameter
, (Tue Nov 30, 12:07 pm)
Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() ...
, Eric Dumazet
, (Tue Nov 30, 12:13 pm)
Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() ...
, Peter Zijlstra
, (Tue Nov 30, 12:19 pm)
Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() ...
, Christoph Lameter
, (Tue Nov 30, 12:26 pm)
Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() ...
, Eric Dumazet
, (Tue Nov 30, 12:29 pm)
Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() ...
, Peter Zijlstra
, (Tue Nov 30, 12:38 pm)
Re: [thisops uV3 07/18] highmem: Use this_cpu_xx_return() ...
, Christoph Lameter
, (Tue Nov 30, 12:53 pm)
[extra] timers: Use this_cpu_read
, Christoph Lameter
, (Tue Nov 30, 1:05 pm)
Re: [thisops uV3 15/18] Xen: Use this_cpu_ops
, Jeremy Fitzhardinge
, (Tue Nov 30, 1:53 pm)
Re: [thisops uV3 15/18] Xen: Use this_cpu_ops
, Christoph Lameter
, (Tue Nov 30, 2:03 pm)
Re: [thisops uV3 08/18] Taskstats: Use this_cpu_ops
, Michael Holzheu
, (Wed Dec 1, 11:06 am)
Re: [thisops uV3 08/18] Taskstats: Use this_cpu_ops
, Christoph Lameter
, (Wed Dec 1, 11:13 am)
Re: [thisops uV3 14/18] lguest: Use this_cpu_ops
, Rusty Russell
, (Mon Dec 6, 12:46 am)
Re: [thisops uV3 08/18] Taskstats: Use this_cpu_ops
, Balbir Singh
, (Mon Dec 6, 7:32 am)
Re: [thisops uV3 14/18] lguest: Use this_cpu_ops
, Christoph Lameter
, (Mon Dec 6, 8:54 am)
Re: [thisops uV3 08/18] Taskstats: Use this_cpu_ops
, Christoph Lameter
, (Tue Dec 7, 7:39 am)
[tip:timers/core] timers: Use this_cpu_read
, tip-bot for Christop ...
, (Sun Dec 12, 10:41 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Jan Engelhardt
Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection
Dmitry Torokhov
Re: [2.6 patch] input/serio/hp_sdc.c section fix
Rafael J. Wysocki
[Bug #16380] Loop devices act strangely in 2.6.35
git
:
Steven Grimm
Using git as a general backup mechanism (was Re: Using GIT to store /etc)
Jeff King
Re: [PATCH] git-reset: allow --soft in a bare repo
Johannes Sixt
Re: [PATCH 01/14] msvc: Fix compilation errors in compat/win32/sys/poll.c
Johannes Schindelin
Re: [PATCH] Uninstall rule for top level Makefile
Shawn O. Pearce
Re: [PATCH v2] Speed up bash completion loading
git-commits-head
:
Linux Kernel Mailing List
cgroups: clean up cgroup_pidlist_find() a bit
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
Linux Kernel Mailing List
V4L/DVB (8939): cx18: fix sparse warnings
Linux Kernel Mailing List
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
linux
Re: 2.6.23-rc8 network problem. Mem leak? ip1000a?
David Miller
Re: tun: Use netif_receive_skb instead of netif_rx
David Miller
Re: [net-next PATCH v2] llc enhancements
freebsd-current
:
Matthew Fleming
Re: [RFC] Outline of USB process integration in the kernel taskqueue system
illoai@gmail.com
Re: OT: 2d password
Hartmut Brandt
Re: problem with nss_ldap
Andrew Reilly
Re: FreeBSD's problems as seen by the BSDForen.de community
Max Laier
Re: Upcoming ABI Breakage in RELENG_7
Colocation donated by:
Syndicate