login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
24
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu.h:wait_for_init_deassert()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andi Kleen
Subject:
Re: [PATCH] i386: Fix a couple busy loops in mach_wakecpu.h:wait_for_init_deassert()
Date: Friday, August 24, 2007 - 5:07 am
On Friday 24 August 2007 13:59:32 Denys Vlasenko wrote:
quoted text
> On Thursday 16 August 2007 01:39, Satyam Sharma wrote: > > > > static inline void wait_for_init_deassert(atomic_t *deassert) > > { > > - while (!atomic_read(deassert)); > > + while (!atomic_read(deassert)) > > + cpu_relax(); > > return; > > } > > For less-than-briliant people like me, it's totally non-obvious that > cpu_relax() is needed for correctness here, not just to make P4 happy.
I find it also non obvious. It would be really better to have a barrier or equivalent (volatile or variable clobber) in the atomic_read()
quoted text
> IOW: "atomic_read" name quite unambiguously means "I will read > this variable from main memory". Which is not true and creates > potential for confusion and bugs.
Agreed. -Andi -
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 KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate