login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
15
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Satyam Sharma
Subject:
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
Date: Wednesday, August 15, 2007 - 10:13 am
On Wed, 15 Aug 2007, Paul E. McKenney wrote:
quoted text
> On Wed, Aug 15, 2007 at 06:09:35PM +0200, Stefan Richter wrote: > > Herbert Xu wrote: > > > On Wed, Aug 15, 2007 at 08:05:38PM +0530, Satyam Sharma wrote: > > >>> I don't know if this here is affected: > > > > [...something like] > > b = atomic_read(a); > > for (i = 0; i < 4; i++) { > > msleep_interruptible(63); > > c = atomic_read(a); > > if (c != b) { > > b = c; > > i = 0; > > } > > } > > > > > Nope, we're calling schedule which is a rather heavy-weight > > > barrier. > > > > How does the compiler know that msleep() has got barrier()s? > > Because msleep_interruptible() is in a separate compilation unit, > the compiler has to assume that it might modify any arbitrary global. > In many cases, the compiler also has to assume that msleep_interruptible() > might call back into a function in the current compilation unit, thus > possibly modifying global static variables.
Yup, I've just verified this with a testcase. So a call to any function outside of the current compilation unit acts as a compiler barrier. Cool. -
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:
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Chris Snook
, (Tue Aug 14, 4:04 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Christoph Lameter
, (Tue Aug 14, 4:14 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Tue Aug 14, 11:49 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Heiko Carstens
, (Wed Aug 15, 1:18 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Stefan Richter
, (Wed Aug 15, 6:53 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Wed Aug 15, 7:35 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Wed Aug 15, 7:52 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Stefan Richter
, (Wed Aug 15, 9:09 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Chris Snook
, (Wed Aug 15, 9:13 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 9:27 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Wed Aug 15, 10:13 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 11:31 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 11:57 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Wed Aug 15, 12:54 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Stefan Richter
, (Wed Aug 15, 12:58 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 1:17 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 1:47 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 1:52 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 2:05 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 3:42 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 3:44 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Wed Aug 15, 4:40 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 4:51 pm)
[No subject]
, Satyam Sharma
, (Wed Aug 15, 5:36 pm)
[PATCH] i386: Fix a couple busy loops in mach_wakecpu.h:wa ...
, Satyam Sharma
, (Wed Aug 15, 5:39 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 6:23 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 6:26 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Wed Aug 15, 6:30 pm)
Re:
, Segher Boessenkool
, (Wed Aug 15, 6:38 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 7:22 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Wed Aug 15, 7:23 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Wed Aug 15, 7:30 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Thu Aug 16, 12:32 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Thu Aug 16, 12:33 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Thu Aug 16, 7:19 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul Mackerras
, (Thu Aug 16, 8:16 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Thu Aug 16, 8:32 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Thu Aug 16, 8:42 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Thu Aug 16, 8:50 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Thu Aug 16, 10:18 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Thu Aug 16, 10:56 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Geert Uytterhoeven
, (Thu Aug 16, 11:42 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Fri Aug 17, 12:26 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 1:47 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Andi Kleen
, (Fri Aug 17, 1:52 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Fri Aug 17, 2:15 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul Mackerras
, (Fri Aug 17, 2:48 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 3:08 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 3:12 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 3:23 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Nick Piggin
, (Fri Aug 17, 5:14 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 6:05 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 10:37 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 3:29 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 3:49 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 4:51 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Fri Aug 17, 4:55 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Fri Aug 17, 4:59 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Herbert Xu
, (Fri Aug 17, 5:09 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Fri Aug 17, 6:08 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Christoph Lameter
, (Fri Aug 17, 6:24 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Fri Aug 17, 6:41 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Fri Aug 17, 9:13 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Satyam Sharma
, (Sat Aug 18, 6:36 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Sat Aug 18, 2:54 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Sat Aug 18, 2:56 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Sat Aug 18, 3:41 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Sat Aug 18, 4:19 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Chris Snook
, (Mon Aug 20, 6:31 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Mon Aug 20, 3:04 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Russell King
, (Mon Aug 20, 3:48 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Mon Aug 20, 4:02 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Mon Aug 20, 5:05 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Russell King
, (Tue Aug 21, 12:05 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Russell King
, (Tue Aug 21, 12:08 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul Mackerras
, (Tue Aug 21, 2:33 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Andi Kleen
, (Tue Aug 21, 4:37 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Tue Aug 21, 7:39 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Segher Boessenkool
, (Tue Aug 21, 7:48 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Tue Aug 21, 9:16 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Valdis.Kletnieks
, (Tue Aug 21, 3:51 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Paul E. McKenney
, (Tue Aug 21, 5:50 pm)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Adrian Bunk
, (Wed Aug 22, 2:38 pm)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Denys Vlasenko
, (Fri Aug 24, 4:59 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Andi Kleen
, (Fri Aug 24, 5:07 am)
RE: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Kenn Humborg
, (Fri Aug 24, 5:12 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Denys Vlasenko
, (Fri Aug 24, 5:19 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Satyam Sharma
, (Fri Aug 24, 6:30 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Denys Vlasenko
, (Fri Aug 24, 7:25 am)
RE: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Luck, Tony
, (Fri Aug 24, 9:19 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Christoph Lameter
, (Fri Aug 24, 10:06 am)
Re: [PATCH 0/24] make atomic_read() behave consistently ac ...
, Linus Torvalds
, (Fri Aug 24, 10:19 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Linus Torvalds
, (Fri Aug 24, 10:34 am)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Denys Vlasenko
, (Fri Aug 24, 1:26 pm)
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu. ...
, Chris Snook
, (Fri Aug 24, 1:34 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate